comparison libpurple/protocols/yahoo/yahoo.h @ 25010:afb1b5f1dc84

Implementation of initial exchange of p2pxfer packets that initiates p2p file transfer. Some connection and stability issues exists, soon to be looked into.
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Fri, 06 Jun 2008 17:28:37 +0000
parents 269bba623a62
children 9b16249bfbe6
comparison
equal deleted inserted replaced
25009:185bd4679ad1 25010:afb1b5f1dc84
28 #include "circbuffer.h" 28 #include "circbuffer.h"
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_PROFILE_URL "http://profiles.yahoo.com/" 34 #define YAHOO_PROFILE_URL "http://profiles.yahoo.com/"
34 #define YAHOO_MAIL_URL "https://login.yahoo.com/config/login?.src=ym" 35 #define YAHOO_MAIL_URL "https://login.yahoo.com/config/login?.src=ym"
35 #define YAHOO_XFER_HOST "filetransfer.msg.yahoo.com" 36 #define YAHOO_XFER_HOST "filetransfer.msg.yahoo.com"
36 #define YAHOO_XFER_PORT 80 37 #define YAHOO_XFER_PORT 80
37 #define YAHOO_XFER_RELAY_HOST "relay.msg.yahoo.com" 38 #define YAHOO_XFER_RELAY_HOST "relay.msg.yahoo.com"
109 GString *str; 110 GString *str;
110 char *filename; 111 char *filename;
111 int pos; 112 int pos;
112 int fd; 113 int fd;
113 guint watcher; 114 guint watcher;
115 };
116
117 struct yahoo_p2p_data {
118 PurpleConnection *gc;
119 char *host_ip; /*also we use it as a handle*/
120 int session_id;
121 char *host_username;
122 int val_13;
114 }; 123 };
115 124
116 struct _YchtConn; 125 struct _YchtConn;
117 126
118 struct yahoo_data { 127 struct yahoo_data {