diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-23 13:43:42 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-23 13:43:42 +0000 |
commit | 271ebb5be72994c690173ac0892053d3f6cae498 (patch) | |
tree | 2db090e88bd354d4ac322796a3a73681046f3c9d /src/irc/dcc/dcc-chat.c | |
parent | 7f3f53bffeb94e39f6f4a32858036024c4de6a36 (diff) | |
download | irssi-271ebb5be72994c690173ac0892053d3f6cae498.zip |
Use net-sendbuffer with DCC chat.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@522 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc/dcc-chat.c')
-rw-r--r-- | src/irc/dcc/dcc-chat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c index 8cae1265..173d48b1 100644 --- a/src/irc/dcc/dcc-chat.c +++ b/src/irc/dcc/dcc-chat.c @@ -40,9 +40,8 @@ void dcc_chat_send(DCC_REC *dcc, const char *data) g_return_if_fail(dcc != NULL); g_return_if_fail(data != NULL); - /* FIXME: we need output queue! */ - net_transmit(dcc->handle, data, strlen(data)); - net_transmit(dcc->handle, "\n", 1); + net_sendbuffer_send(dcc->sendbuf, data, strlen(data)); + net_sendbuffer_send(dcc->sendbuf, "\n", 1); } /* If `item' is a query of a =nick, return DCC chat record of nick */ @@ -204,6 +203,7 @@ static void dcc_chat_listen(DCC_REC *dcc) dcc->starttime = time(NULL); dcc->handle = handle; + dcc->sendbuf = net_sendbuffer_create(handle, 0); memcpy(&dcc->addr, &ip, sizeof(IPADDR)); net_ip2host(&dcc->addr, dcc->addrstr); dcc->port = port; @@ -228,6 +228,7 @@ static void sig_chat_connected(DCC_REC *dcc) /* connect ok. */ g_source_remove(dcc->tagconn); dcc->starttime = time(NULL); + dcc->sendbuf = net_sendbuffer_create(dcc->handle, 0); dcc->tagread = g_input_add(dcc->handle, G_INPUT_READ, (GInputFunction) dcc_chat_input, dcc); |