Use libevent for meta socket input/output buffering.

This commit is contained in:
Guus Sliepen 2007-05-19 22:23:02 +00:00
parent 59108e4e4f
commit fbf305c09d
12 changed files with 177 additions and 269 deletions

View file

@ -121,8 +121,6 @@ void terminate_connection(connection_t *c, bool report) {
if(c->socket)
closesocket(c->socket);
event_del(&c->ev);
if(c->edge) {
if(report && !tunnelserver)
send_del_edge(broadcast, c->edge);
@ -146,12 +144,6 @@ void terminate_connection(connection_t *c, bool report) {
}
}
free(c->outbuf);
c->outbuf = NULL;
c->outbuflen = 0;
c->outbufsize = 0;
c->outbufstart = 0;
/* Check if this was our outgoing connection */
if(c->outgoing)