Mercurial > pidgin
comparison libpurple/protocols/sametime/sametime.c @ 23796:69d54f84350a
propagate from branch 'im.pidgin.pidgin' (head 9da7555026cd7b8456f95ae153a7852ddbcf6678)
to branch 'im.pidgin.pidgin.vv' (head 3f8b4b5a421935e71b45c7b8260c8bb32a330384)
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 13 Apr 2008 17:53:46 +0000 |
parents | 92e71f6e10d4 c65c96e231b5 |
children | ff29208e03ef |
comparison
equal
deleted
inserted
replaced
23795:0d41d271227b | 23796:69d54f84350a |
---|---|
376 | 376 |
377 | 377 |
378 static int mw_session_io_write(struct mwSession *session, | 378 static int mw_session_io_write(struct mwSession *session, |
379 const guchar *buf, gsize len) { | 379 const guchar *buf, gsize len) { |
380 struct mwPurplePluginData *pd; | 380 struct mwPurplePluginData *pd; |
381 ssize_t ret = 0; | 381 gssize ret = 0; |
382 int err = 0; | 382 int err = 0; |
383 | 383 |
384 pd = mwSession_getClientData(session); | 384 pd = mwSession_getClientData(session); |
385 | 385 |
386 /* socket was already closed. */ | 386 /* socket was already closed. */ |
411 DEBUG_INFO("EAGAIN\n"); | 411 DEBUG_INFO("EAGAIN\n"); |
412 purple_circ_buffer_append(pd->sock_buf, buf, len); | 412 purple_circ_buffer_append(pd->sock_buf, buf, len); |
413 pd->outpa = purple_input_add(pd->socket, PURPLE_INPUT_WRITE, write_cb, pd); | 413 pd->outpa = purple_input_add(pd->socket, PURPLE_INPUT_WRITE, write_cb, pd); |
414 | 414 |
415 } else if(len > 0) { | 415 } else if(len > 0) { |
416 DEBUG_ERROR("write returned %" G_GSIZE_FORMAT ", %" G_GSIZE_FORMAT | 416 DEBUG_ERROR("write returned %" G_GSSIZE_FORMAT ", %" G_GSIZE_FORMAT |
417 " bytes left unwritten\n", ret, len); | 417 " bytes left unwritten\n", ret, len); |
418 purple_connection_error_reason(pd->gc, | 418 purple_connection_error_reason(pd->gc, |
419 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, | 419 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
420 _("Connection closed (writing)")); | 420 _("Connection closed (writing)")); |
421 | 421 |