Re: [Libevent-users] Ability to shutdown() socket with bufferevents?

2010-07-27 Thread Corey Stup
> Right now there's no way to make a bufferevent call shutdown() itself, > but what if you have a write handler on the client bufferevent just > call shutdown() manually on the fd to send a FIN when the write buffer > is empty?  You can get the fd with bufferevent_get_fd(). How can I check to see i

[Libevent-users] Ability to shutdown() socket with bufferevents?

2010-07-27 Thread Corey Stup
I'm needing the ability to shutdown(fd, 1) on a bufferevent managed socket [created with bufferevent_socket_new() and bufferevent_socket_connect()] as part of my protocol. The flow of which looks somethign like this: Client opens connection to server Client sends data. Client closes the sending