Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/ibb.h @ 30013:8f442c566ff2
jabber: Adjust amount of data to send in IBB packets so that at most block-size
bytes of BASE64-encoded data is sent, based on discussion on the standars@j.o
list. Keep accepting receiving packets containing up to block-size bytes of
decoded data to stay compatible with previous version, and other clients who
made that assuption.
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Thu, 18 Mar 2010 21:19:44 +0000 |
parents | 7b4ade7c6d8a |
children | 7fbb7612e3dd |
comparison
equal
deleted
inserted
replaced
30006:ffc1f997cb91 | 30013:8f442c566ff2 |
---|---|
105 JabberIBBSessionState jabber_ibb_session_get_state(const JabberIBBSession *sess); | 105 JabberIBBSessionState jabber_ibb_session_get_state(const JabberIBBSession *sess); |
106 | 106 |
107 gsize jabber_ibb_session_get_block_size(const JabberIBBSession *sess); | 107 gsize jabber_ibb_session_get_block_size(const JabberIBBSession *sess); |
108 void jabber_ibb_session_set_block_size(JabberIBBSession *sess, gsize size); | 108 void jabber_ibb_session_set_block_size(JabberIBBSession *sess, gsize size); |
109 | 109 |
110 /* get maximum size data block to send (in bytes) | |
111 (before encoded to BASE64) */ | |
112 gsize jabber_ibb_session_get_max_data_size(const JabberIBBSession *sess); | |
113 | |
110 gpointer jabber_ibb_session_get_user_data(JabberIBBSession *sess); | 114 gpointer jabber_ibb_session_get_user_data(JabberIBBSession *sess); |
111 | 115 |
112 /* handle incoming packet */ | 116 /* handle incoming packet */ |
113 void jabber_ibb_parse(JabberStream *js, const char *who, JabberIqType type, | 117 void jabber_ibb_parse(JabberStream *js, const char *who, JabberIqType type, |
114 const char *id, xmlnode *child); | 118 const char *id, xmlnode *child); |