comparison src/protocols/jabber/jabber.c @ 7177:4200828dc06c

[gaim-migrate @ 7745] rwscott noticed this committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 06 Oct 2003 21:55:28 +0000
parents e9867cdeb0fd
children 1930e3d00ecd
comparison
equal deleted inserted replaced
7176:57478df4faf8 7177:4200828dc06c
263 263
264 if((len = gaim_ssl_read(gsc, buf, sizeof(buf) - 1)) > 0) { 264 if((len = gaim_ssl_read(gsc, buf, sizeof(buf) - 1)) > 0) {
265 buf[len] = '\0'; 265 buf[len] = '\0';
266 gaim_debug(GAIM_DEBUG_INFO, "jabber", "Recv (ssl)(%d): %s\n", len, buf); 266 gaim_debug(GAIM_DEBUG_INFO, "jabber", "Recv (ssl)(%d): %s\n", len, buf);
267 jabber_parser_process(js, buf, len); 267 jabber_parser_process(js, buf, len);
268 } else {
269 gaim_connection_error(gc, _("Read Error"));
268 } 270 }
269 } 271 }
270 272
271 static void 273 static void
272 jabber_recv_cb(gpointer data, gint source, GaimInputCondition condition) 274 jabber_recv_cb(gpointer data, gint source, GaimInputCondition condition)
281 283
282 if((len = read(js->fd, buf, sizeof(buf) - 1)) > 0) { 284 if((len = read(js->fd, buf, sizeof(buf) - 1)) > 0) {
283 buf[len] = '\0'; 285 buf[len] = '\0';
284 gaim_debug(GAIM_DEBUG_INFO, "jabber", "Recv (%d): %s\n", len, buf); 286 gaim_debug(GAIM_DEBUG_INFO, "jabber", "Recv (%d): %s\n", len, buf);
285 jabber_parser_process(js, buf, len); 287 jabber_parser_process(js, buf, len);
288 } else {
289 gaim_connection_error(gc, _("Read Error"));
286 } 290 }
287 } 291 }
288 292
289 static void 293 static void
290 jabber_login_callback_ssl(gpointer data, GaimSslConnection *gsc, 294 jabber_login_callback_ssl(gpointer data, GaimSslConnection *gsc,