I used
bufferevent_free(bev);
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Felix Nawothnig
Sent: Tuesday, June 01, 2010 12:07 PM
To: [email protected]
Subject: [Libevent-users] How to close bufferevent connection?
Hey.
What's the "suggested" way to close a bufferevent connection?
Currently I do:
fd = bufferevent_getfd(bev);
evutil_closesocket(fd);
... followed by a manual:
my_event_handler(bev, BEV_EVENT_EOF, NULL);
... because it doesn't seem to be called otherwise.
Is this the "correct" way? Is the fact that the event handler not called
a bug?
Cheers,
Felix
***********************************************************************
To unsubscribe, send an e-mail to [email protected] with
unsubscribe libevent-users in the body.
***********************************************************************
To unsubscribe, send an e-mail to [email protected] with
unsubscribe libevent-users in the body.