Mercurial > pidgin
comparison plugins/yay/outgoing.c @ 1554:c3afde736a8a
[gaim-migrate @ 1564]
good stuff.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 10 Mar 2001 00:00:18 +0000 |
parents | 92b3dd1e4129 |
children | 4a47a459cc98 |
comparison
equal
deleted
inserted
replaced
1553:bf10d0673d34 | 1554:c3afde736a8a |
---|---|
28 return 0; | 28 return 0; |
29 | 29 |
30 if (!g_list_find(session->connlist, conn)) | 30 if (!g_list_find(session->connlist, conn)) |
31 return 0; | 31 return 0; |
32 | 32 |
33 if (write(conn->socket, buf, len) != len) { | 33 if (send(conn->socket, buf, len, 0) != len) { |
34 int type = conn->type; | 34 int type = conn->type; |
35 yahoo_close(session, conn); | 35 yahoo_close(session, conn); |
36 YAHOO_PRINT(session, YAHOO_LOG_CRITICAL, "error sending"); | 36 YAHOO_PRINT(session, YAHOO_LOG_CRITICAL, "error sending"); |
37 if (type == YAHOO_CONN_TYPE_DUMB) | 37 if (type == YAHOO_CONN_TYPE_DUMB) |
38 CALLBACK(session, YAHOO_HANDLE_DISCONNECT); | 38 CALLBACK(session, YAHOO_HANDLE_DISCONNECT); |