Mercurial > pidgin
comparison src/protocols/msn/msg.h @ 19816:1aa5494587e8
[gaim-migrate @ 16973]
change the soap process to below:
Post one Soap request
After finish one soap request,close the connection,
If there are more, reconect and process it.
to avoid the below problem:
in one socket, If post soap request one by one, The second will always read 0 bytes.
comitted by Ma Yuan<mayuan2006@gmail.com>
committer: Ethan Blanton <elb@pidgin.im>
author | Ma Yuan <mayuan2006@gmail.com> |
---|---|
date | Tue, 22 Aug 2006 06:10:01 +0000 |
parents | 95fa774d216d |
children |
comparison
equal
deleted
inserted
replaced
19815:bffd1b96207c | 19816:1aa5494587e8 |
---|---|
31 | 31 |
32 #include "command.h" | 32 #include "command.h" |
33 #include "transaction.h" | 33 #include "transaction.h" |
34 | 34 |
35 typedef void (*MsnMsgCb)(MsnMessage *, void *data); | 35 typedef void (*MsnMsgCb)(MsnMessage *, void *data); |
36 | |
37 #define MSG_BODY_DEM "\r\n\r\n" | |
38 #define MSG_LINE_DEM "\r\n" | |
39 | |
40 #define MSG_OIM_BODY_DEM "\n\n" | |
41 #define MSG_OIM_LINE_DEM "\n" | |
36 | 42 |
37 /* | 43 /* |
38 typedef enum | 44 typedef enum |
39 { | 45 { |
40 MSN_MSG_NORMAL, | 46 MSN_MSG_NORMAL, |
178 * @param msg The message. | 184 * @param msg The message. |
179 * @param payload The payload. | 185 * @param payload The payload. |
180 * @param payload_len The length of the payload. | 186 * @param payload_len The length of the payload. |
181 */ | 187 */ |
182 void msn_message_parse_payload(MsnMessage *msg, const char *payload, | 188 void msn_message_parse_payload(MsnMessage *msg, const char *payload, |
183 size_t payload_len); | 189 size_t payload_len, |
190 const char *line_dem,const char *body_dem); | |
184 | 191 |
185 /** | 192 /** |
186 * Destroys a message. | 193 * Destroys a message. |
187 * | 194 * |
188 * @param msg The message to destroy. | 195 * @param msg The message to destroy. |