Mercurial > pidgin
diff libpurple/protocols/jabber/bosh.h @ 25052:0a8484372312
* sending empty <body> requests if there are not othere requests to be answered to keep a CM -> client channel open
* reconnect if HTTP connection is closed
author | Tobias Markmann <tfar@soc.pidgin.im> |
---|---|
date | Mon, 18 Aug 2008 08:42:37 +0000 |
parents | 5f70e13db5cc |
children | 7de1f124f95a |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/bosh.h Sat Aug 16 21:28:32 2008 +0000 +++ b/libpurple/protocols/jabber/bosh.h Mon Aug 18 08:42:37 2008 +0000 @@ -30,6 +30,7 @@ typedef struct _PurpleBOSHConnection PurpleBOSHConnection; typedef void (*PurpleHTTPConnectionConnectFunction)(PurpleHTTPConnection *conn); +typedef void (*PurpleHTTPConnectionDisconnectFunction)(PurpleHTTPConnection *conn); typedef void (*PurpleHTTPRequestCallback)(PurpleHTTPRequest *req, PurpleHTTPResponse *res, void *userdata); typedef void (*PurpleBOSHConnectionConnectFunction)(PurpleBOSHConnection *conn); typedef void (*PurpleBOSHConnectionReciveFunction)(PurpleBOSHConnection *conn, xmlnode *node); @@ -45,7 +46,7 @@ int rid; char *sid; int wait; - + JabberStream *js; void *userdata; PurpleAccount *account; @@ -74,6 +75,7 @@ int pih; PurpleHTTPConnectionConnectFunction connect_cb; + PurpleHTTPConnectionConnectFunction disconnect_cb; void *userdata; };