Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. ; constants
  2. FLAP_HEAD_SIZE  = 6
  3. SNAC_HEAD_SIZE  = 10
  4.  
  5. ;AUTH_MESSAGE   = 0008h
  6. ;USER_ADDED_MESS = 000Ch
  7. ;AUTH_REQ_MESS  = 0006h
  8. ;URL_MESS       = 0004h
  9. ;WEB_MESS       = 000dh
  10. ;EMAIL_MESS     = 000eh
  11. ;MASS_MESS_MASK         = 8000h
  12. ;MRURL_MESS     = 8004h
  13. ;NORM_MESS      = 0001h
  14. ;MRNORM_MESS    = 8001h
  15. ;CONTACT_MESS   = 0013h
  16. ;MRCONTACT_MESS = 8013h
  17. ;
  18. ;
  19. ;
  20. ;CAP_PRECAP     = "\x09\x46\x13"
  21. ;CAP_PRERTF     = "\x97\xb1\x27"
  22. ;CAP_POSCAP     = "\x4c\x7f\x11\xd1\x82\x22\x44\x45\x53\x54\x00\x00"
  23. ;CAP_POSRTF     = "\x24\x3c\x43\x34\xad\x22\xd6\xab\xf7\x3f\x14\x92"
  24.  
  25. ;
  26. ;Fingerprinting Capabilities
  27. ;
  28. ;CAP_M2001      = "\x2e\x7a\x64"                                                                        "\x75"                                                                          "\xfa\xdf\x4d\xc8\x88\x6f\xea\x35\x95\xfd\xb6\xdf"
  29. ;CAP_M2001_2    = "\xa0\xe9\x3f"                                                                        "\x37"                                                                          "\x4f\xe9\xd3\x11\xbc\xd2\x00\x04\xac\x96\xdd\x96"     
  30. ;CAP_M2002      = "\x10\xcf\x40"                                                                        "\xd1"                                                                          "\x4f\xe9\xd3\x11\xbc\xd2\x00\x04\xac\x96\xdd\x96"
  31. ;CAP_MLITE      = "\x56\x3f\xc8"                                                                        "\x09"                                                                          "\x0b\x6f\x41\xbd\x9f\x79\x42\x26\x09\xdf\xa2\xf3"
  32. ;CAP_SIMICQ     = "\x97\xb1\x27"                                                                        "\x51"                                                                          "\x24\x3c\x43\x34\xad\x22\xd6\xab\xf7\x3f\x14\x48"
  33. ;CAP_MICQ       = "mICQ \xa9 R.K. \x00\x00\x00\x00"
  34. ;CAP_TRILL_NORM = "\x97\xb1\x27"                                                                        "\x51"                                                                          "\x24\x3c\x43\x34\xad\x22\xd6\xab\xf7\x3f\x14\x09"
  35. ;CAP_TRILL_CRYPT= "\xf2\xe7\xc7"                                                                        "\xf4"                                                                          "\xfe\xad\x4d\xfb\xb2\x35\x36\x79\x8b\xdf\x00\x00"
  36. ;CAP_LICQ       = "\x09\x49\x13"         
  37.  
  38. ;
  39. ;DC Packet Types
  40. ;
  41. ;PEER_INIT              = 0ffh
  42. ;PEER_INITACK           = 01h
  43. ;PEER_MSG               = 02h
  44. ;PEER_INIT2             = 03h
  45. ;PEER_FILE_INIT         = 00h
  46. ;PEER_FILE_INIT_ACK     = 01h
  47. ;PEER_FILE_START                = 02h
  48. ;PEER_FILE_START_ACK    = 03h
  49. ;PEER_FILE_STOP         = 04h
  50. ;PEER_FILE_SPEED                = 05h
  51. ;PEER_FILE_DATA         = 06h
  52.  
  53.  
  54. ICQ_PORT        = 5190
  55. ;
  56. ; FLAP transport
  57. ;
  58. FLAP_ID         = 02ah
  59.  
  60. struc FLAP_head
  61. {
  62.         .bId db FLAP_ID ;id byte
  63.         .bCh db ? ;channel
  64.         .wSn dw ? ;seq number
  65.         .wDs dw ? ;data size
  66. }
  67. ;
  68. ; Channels ID
  69. ;
  70.  
  71. NEW_CONNECTION          = 01h
  72. SNAC_DATA               = 02h
  73. FLAP_ERROR              = 03h
  74. CLOSE_CONNECTION        = 04h
  75. KEEP_ALIVE              = 05h
  76.  
  77. ;
  78. ; SNAC
  79. ;
  80. struc SNAC_head
  81. {
  82.         .wFid dw ?; Family id
  83.         .wSid dw ?; subtype id
  84.         .wDf  dw ?; SNAC flags
  85.         .dRi  dd ?; SNAC Request id
  86. }
  87.  
  88. ;
  89. ;
  90. ; Familes/SNACs list
  91. ;
  92.  
  93. GENERIC_SN      = 0001h
  94. LOCATION_SN     = 0002h
  95. BUDDY_LIST_SN   = 0003h
  96. ICBM_SN         = 0004h
  97. PRIVACY_SN      = 0009h
  98. BUDDY_ICONS_SN  = 0010h
  99. SSI_SN          = 0013h
  100. AUTH_REG_SN     = 0017h
  101.  
  102. ;
  103. ; TLV
  104. ;
  105. struc TLV_head
  106. {
  107.         .wTn dw ?; TLV type number
  108.         .wLv dw ?; TLV length value
  109. }
  110.  
  111. ;
  112. ; userinfo block
  113. ;
  114. struc UI_head
  115. {
  116.         .bUinLength    db 0        ; UIN/screenname length
  117.         .bUin          db 11 dup 0 ; string
  118.         .wWl           dw 0        ; Warning level
  119.         .dUserClass    dd 0
  120.         .dCreateTime   dd 0
  121.         .dSignonTime   dd 0
  122.         .wIdleTime     dw 0
  123.         .dCreationTime dd 0
  124.         .dUserStatus   dd 0
  125.         .dIpAddress    dd 0
  126.         .dOnlineTime   dd 0
  127.  
  128. }
  129.  
  130. ;
  131. ;Roasting array
  132. ;
  133. ROASTING_ARRAY db 0F3h, 026h, 081h, 0C4h, 039h, 086h, 0DBh, 092h, 071h, 0A3h, 0B9h, 0E6h, 053h, 07Ah, 095h, 07Ch
  134.  
  135. ;
  136. ; Status flags
  137. ;
  138. ;
  139.  
  140.   STATUS_WEBAWARE   = 0x0001      ;Status webaware flag
  141.   STATUS_SHOWIP     = 0x0002      ;Status show ip flag
  142.   STATUS_BIRTHDAY   = 0x0008      ;User birthday flag
  143.   STATUS_WEBFRONT   = 0x0020      ;User active webfront flag
  144.   STATUS_DCDISABLED = 0x0100      ;Direct connection not supported
  145.   STATUS_DCAUTH     = 0x1000      ;Direct connection upon authorization
  146.   STATUS_DCCONT     = 0x2000      ;DC only with contact users
  147.  
  148. ;
  149. ; Status
  150. ;
  151.  
  152.   STATUS_ONLINE    = 0x0000       ;Status is online
  153.   STATUS_AWAY      = 0x0001       ;Status is away
  154.   STATUS_DND       = 0x0002       ;Status is no not disturb (DND)
  155.   STATUS_NA        = 0x0004       ;Status is not available (N/A)
  156.   STATUS_OCCUPIED  = 0x0010       ;Status is occupied (BISY)
  157.   STATUS_FREE4CHAT = 0x0020       ;Status is free for chat
  158.   STATUS_INVISIBLE = 0x0100       ;Status is invisible
  159.  
  160.  
  161.