comparison src/protocols/yahoo/yahoo.c @ 3467:79e0d2f8ad2b

[gaim-migrate @ 3517] Some people are complaining that reporting version 6 is making them fail to log in. So let's use version 9. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 29 Aug 2002 03:22:21 +0000
parents 7a3f16a375a5
children 4b204c262376
comparison
equal deleted inserted replaced
3466:7a3f16a375a5 3467:79e0d2f8ad2b
84 84
85 #define USEROPT_PAGERHOST 3 85 #define USEROPT_PAGERHOST 3
86 #define YAHOO_PAGER_HOST "scs.yahoo.com" 86 #define YAHOO_PAGER_HOST "scs.yahoo.com"
87 #define USEROPT_PAGERPORT 4 87 #define USEROPT_PAGERPORT 4
88 #define YAHOO_PAGER_PORT 5050 88 #define YAHOO_PAGER_PORT 5050
89
90 #define YAHOO_PROTO_VER 0x0900
89 91
90 enum yahoo_service { /* these are easier to see in hex */ 92 enum yahoo_service { /* these are easier to see in hex */
91 YAHOO_SERVICE_LOGON = 1, 93 YAHOO_SERVICE_LOGON = 1,
92 YAHOO_SERVICE_LOGOFF, 94 YAHOO_SERVICE_LOGOFF,
93 YAHOO_SERVICE_ISAWAY, 95 YAHOO_SERVICE_ISAWAY,
344 return -1; 346 return -1;
345 347
346 data = g_malloc0(len + 1); 348 data = g_malloc0(len + 1);
347 349
348 memcpy(data + pos, "YMSG", 4); pos += 4; 350 memcpy(data + pos, "YMSG", 4); pos += 4;
349 pos += yahoo_put16(data + pos, 0x0600); 351 pos += yahoo_put16(data + pos, YAHOO_PROTO_VER);
350 pos += yahoo_put16(data + pos, 0x0000); 352 pos += yahoo_put16(data + pos, 0x0000);
351 pos += yahoo_put16(data + pos, pktlen); 353 pos += yahoo_put16(data + pos, pktlen);
352 pos += yahoo_put16(data + pos, pkt->service); 354 pos += yahoo_put16(data + pos, pkt->service);
353 pos += yahoo_put32(data + pos, pkt->status); 355 pos += yahoo_put32(data + pos, pkt->status);
354 pos += yahoo_put32(data + pos, pkt->id); 356 pos += yahoo_put32(data + pos, pkt->id);