Mercurial > pidgin
diff libpurple/protocols/bonjour/jabber.h @ 17558:6e4e2d234c3a
Update Bonjour to do nonblocking I/O correctly.
This also includes a number of error handling bugfixes (and various other improvements).
This doesn't handle the scenario where a partial message is read - I need to figure out how libxml2 handles such a
scenario to fix it correctly.
There are also also a few quirks that I noticed and didn't get around to fixing:
-We don't wait for a "</stream:stream>" from the peer before closing the socket.
-We don't make sure that the peer has sent us the stream start message before starting.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 08 Jun 2007 18:24:23 +0000 |
parents | 612dc5149964 |
children | 316be7e715c6 |
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/jabber.h Fri Jun 08 15:37:48 2007 +0000 +++ b/libpurple/protocols/bonjour/jabber.h Fri Jun 08 18:24:23 2007 +0000 @@ -27,6 +27,7 @@ #define _BONJOUR_JABBER_H_ #include "account.h" +#include "circbuffer.h" typedef struct _BonjourJabber { @@ -39,8 +40,12 @@ typedef struct _BonjourJabberConversation { gint socket; - gint watcher_id; + guint rx_handler; + guint tx_handler; + PurpleCircBuffer *tx_buf; gboolean stream_started; + PurpleProxyConnectData *connect_data; + gpointer stream_data; } BonjourJabberConversation; /**