Mercurial > pidgin.yaz
comparison src/protocols/yahoo/yahoo.c @ 2686:7b21c5446baf
[gaim-migrate @ 2699]
hi
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 07 Nov 2001 08:03:20 +0000 |
parents | 4836eae8dd8c |
children | 2d544f48146d |
comparison
equal
deleted
inserted
replaced
2685:3edac3b31edc | 2686:7b21c5446baf |
---|---|
54 #define USEROPT_PAGERHOST 3 | 54 #define USEROPT_PAGERHOST 3 |
55 #define YAHOO_PAGER_HOST "scs.yahoo.com" | 55 #define YAHOO_PAGER_HOST "scs.yahoo.com" |
56 #define USEROPT_PAGERPORT 4 | 56 #define USEROPT_PAGERPORT 4 |
57 #define YAHOO_PAGER_PORT 5050 | 57 #define YAHOO_PAGER_PORT 5050 |
58 | 58 |
59 enum yahoo_service { | 59 enum yahoo_service { /* these are easier to see in hex */ |
60 YAHOO_SERVICE_LOGON = 1, | 60 YAHOO_SERVICE_LOGON = 1, |
61 YAHOO_SERVICE_LOGOFF, | 61 YAHOO_SERVICE_LOGOFF, |
62 YAHOO_SERVICE_ISAWAY, | 62 YAHOO_SERVICE_ISAWAY, |
63 YAHOO_SERVICE_ISBACK, | 63 YAHOO_SERVICE_ISBACK, |
64 YAHOO_SERVICE_IDLE, | 64 YAHOO_SERVICE_IDLE, /* 5 (placemarker) */ |
65 YAHOO_SERVICE_MESSAGE, | 65 YAHOO_SERVICE_MESSAGE, |
66 YAHOO_SERVICE_IDACT, | 66 YAHOO_SERVICE_IDACT, |
67 YAHOO_SERVICE_IDDEACT, | 67 YAHOO_SERVICE_IDDEACT, |
68 YAHOO_SERVICE_MAILSTAT, | 68 YAHOO_SERVICE_MAILSTAT, |
69 YAHOO_SERVICE_USERSTAT, | 69 YAHOO_SERVICE_USERSTAT, /* 0xa */ |
70 YAHOO_SERVICE_NEWMAIL, | 70 YAHOO_SERVICE_NEWMAIL, |
71 YAHOO_SERVICE_CHATINVITE, | 71 YAHOO_SERVICE_CHATINVITE, |
72 YAHOO_SERVICE_CALENDAR, | 72 YAHOO_SERVICE_CALENDAR, |
73 YAHOO_SERVICE_NEWPERSONALMAIL, | 73 YAHOO_SERVICE_NEWPERSONALMAIL, |
74 YAHOO_SERVICE_NEWCONTACT, | 74 YAHOO_SERVICE_NEWCONTACT, |
75 YAHOO_SERVICE_ADDIDENT, | 75 YAHOO_SERVICE_ADDIDENT, /* 0x10 */ |
76 YAHOO_SERVICE_ADDIGNORE, | 76 YAHOO_SERVICE_ADDIGNORE, |
77 YAHOO_SERVICE_PING, | 77 YAHOO_SERVICE_PING, |
78 YAHOO_SERVICE_GROUPRENAME, | 78 YAHOO_SERVICE_GROUPRENAME, |
79 YAHOO_SERVICE_SYSMESSAGE = 20, | 79 YAHOO_SERVICE_SYSMESSAGE = 0x14, |
80 YAHOO_SERVICE_PASSTHROUGH2 = 22, | 80 YAHOO_SERVICE_PASSTHROUGH2 = 0x16, |
81 YAHOO_SERVICE_CONFINVITE = 24, | 81 YAHOO_SERVICE_CONFINVITE = 0x18, |
82 YAHOO_SERVICE_CONFLOGON, | 82 YAHOO_SERVICE_CONFLOGON, |
83 YAHOO_SERVICE_CONFDECLINE, | 83 YAHOO_SERVICE_CONFDECLINE, |
84 YAHOO_SERVICE_CONFLOGOFF, | 84 YAHOO_SERVICE_CONFLOGOFF, |
85 YAHOO_SERVICE_CONFADDINVITE, | 85 YAHOO_SERVICE_CONFADDINVITE, |
86 YAHOO_SERVICE_CONFMSG, | 86 YAHOO_SERVICE_CONFMSG, |
87 YAHOO_SERVICE_CHATLOGON, | 87 YAHOO_SERVICE_CHATLOGON, |
88 YAHOO_SERVICE_CHATLOGOFF, | 88 YAHOO_SERVICE_CHATLOGOFF, |
89 YAHOO_SERVICE_CHATMSG = 32, | 89 YAHOO_SERVICE_CHATMSG = 0x20, |
90 YAHOO_SERVICE_GAMELOGON = 40, | 90 YAHOO_SERVICE_GAMELOGON = 0x28, |
91 YAHOO_SERVICE_GAMELOGOFF = 41, | 91 YAHOO_SERVICE_GAMELOGOFF = 0x29, |
92 YAHOO_SERVICE_FILETRANSFER = 70, | 92 YAHOO_SERVICE_FILETRANSFER = 0x46, |
93 YAHOO_SERVICE_LIST = 85, | 93 YAHOO_SERVICE_LIST = 0x55, |
94 YAHOO_SERVICE_ADDBUDDY = 131, | 94 YAHOO_SERVICE_ADDBUDDY = 0x83, |
95 YAHOO_SERVICE_REMBUDDY = 132 | 95 YAHOO_SERVICE_REMBUDDY = 0x84 |
96 }; | 96 }; |
97 | 97 |
98 enum yahoo_status { | 98 enum yahoo_status { |
99 YAHOO_STATUS_AVAILABLE, | 99 YAHOO_STATUS_AVAILABLE = 0, |
100 YAHOO_STATUS_BRB, | 100 YAHOO_STATUS_BRB, |
101 YAHOO_STATUS_BUSY, | 101 YAHOO_STATUS_BUSY, |
102 YAHOO_STATUS_NOTATHOME, | 102 YAHOO_STATUS_NOTATHOME, |
103 YAHOO_STATUS_NOTATDESK, | 103 YAHOO_STATUS_NOTATDESK, |
104 YAHOO_STATUS_NOTINOFFICE, | 104 YAHOO_STATUS_NOTINOFFICE, |
107 YAHOO_STATUS_OUTTOLUNCH, | 107 YAHOO_STATUS_OUTTOLUNCH, |
108 YAHOO_STATUS_STEPPEDOUT, | 108 YAHOO_STATUS_STEPPEDOUT, |
109 YAHOO_STATUS_INVISIBLE = 12, | 109 YAHOO_STATUS_INVISIBLE = 12, |
110 YAHOO_STATUS_CUSTOM = 99, | 110 YAHOO_STATUS_CUSTOM = 99, |
111 YAHOO_STATUS_IDLE = 999, | 111 YAHOO_STATUS_IDLE = 999, |
112 YAHOO_STATUS_OFFLINE = 0x5a55aa56 | 112 YAHOO_STATUS_OFFLINE = 0x5a55aa56 /* don't ask */ |
113 }; | 113 }; |
114 | 114 |
115 struct yahoo_data { | 115 struct yahoo_data { |
116 int fd; | 116 int fd; |
117 guchar *rxqueue; | 117 guchar *rxqueue; |