Pls google SO_LINGER.
On Wed, Mar 24, 2010 at 11:24 PM, Jarod Liu <liuyuan...@gmail.com> wrote: > I want to implement a server which listen on a port. When new > connection come, write out something, then close the connection. > I try use bufferevent_write put data to output buffer then > bufferevent_free, but I found the connection close without flush > output first. > How can I do that with the bufferevent interfaces? > *********************************************************************** > To unsubscribe, send an e-mail to majord...@freehaven.net with > unsubscribe libevent-users in the body. > *********************************************************************** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-users in the body.