Mercurial > pidgin
comparison libpurple/protocols/yahoo/yahoo.h @ 26141:0e1fba363b01
Implement keep alives for p2p connections, remove bug causing hundreds
of initialization packets
author | Sulabh Mahajan <sulabh@soc.pidgin.im> |
---|---|
date | Wed, 20 Aug 2008 20:32:57 +0000 |
parents | 2666b864dc89 |
children | abf830f6cd43 |
comparison
equal
deleted
inserted
replaced
26140:c031f88aa026 | 26141:0e1fba363b01 |
---|---|
29 #include "prpl.h" | 29 #include "prpl.h" |
30 | 30 |
31 #define YAHOO_PAGER_HOST "scs.msg.yahoo.com" | 31 #define YAHOO_PAGER_HOST "scs.msg.yahoo.com" |
32 #define YAHOO_PAGER_PORT 5050 | 32 #define YAHOO_PAGER_PORT 5050 |
33 #define YAHOO_PAGER_PORT_P2P 5101 | 33 #define YAHOO_PAGER_PORT_P2P 5101 |
34 #define YAHOO_P2P_KEEPALIVE_SECS 300 | |
34 #define YAHOO_PROFILE_URL "http://profiles.yahoo.com/" | 35 #define YAHOO_PROFILE_URL "http://profiles.yahoo.com/" |
35 #define YAHOO_MAIL_URL "https://login.yahoo.com/config/login?.src=ym" | 36 #define YAHOO_MAIL_URL "https://login.yahoo.com/config/login?.src=ym" |
36 #define YAHOO_XFER_HOST "filetransfer.msg.yahoo.com" | 37 #define YAHOO_XFER_HOST "filetransfer.msg.yahoo.com" |
37 #define YAHOO_XFER_PORT 80 | 38 #define YAHOO_XFER_PORT 80 |
38 #define YAHOO_XFER_RELAY_HOST "relay.msg.yahoo.com" | 39 #define YAHOO_XFER_RELAY_HOST "relay.msg.yahoo.com" |
198 * We may receive a list15 in multiple packets with no prior warning as to how many we'll be getting; | 199 * We may receive a list15 in multiple packets with no prior warning as to how many we'll be getting; |
199 * the server expects us to keep track of the group for which it is sending us contact names. | 200 * the server expects us to keep track of the group for which it is sending us contact names. |
200 */ | 201 */ |
201 char *current_list15_grp; | 202 char *current_list15_grp; |
202 GHashTable *peers; /* information about p2p data */ | 203 GHashTable *peers; /* information about p2p data */ |
204 int yahoo_p2p_timer; | |
203 int yahoo_local_p2p_server_fd; | 205 int yahoo_local_p2p_server_fd; |
204 int yahoo_p2p_server_watcher; | 206 int yahoo_p2p_server_watcher; |
205 GHashTable *sms_carrier; /* sms carrier data */ | 207 GHashTable *sms_carrier; /* sms carrier data */ |
206 }; | 208 }; |
207 | 209 |