[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] how to flush output immediately?
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] how to flush output immediately?
- From: Jarod Liu <liuyuanzhi@xxxxxxxxx>
- Date: Wed, 24 Mar 2010 23:24:04 +0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Wed, 24 Mar 2010 11:24:13 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ZS+6rIEGxpOvXZrEcFT+VqU/EqvII3ETJBqfjpMbEzY=; b=dOs3OLk2DgNMS8plA8tla+RmVbUeUws4CsmDPVRuj7Lc7xQCL/xsd3rcWc5ZFuuPZn 4lEifW5VGr1Bq7xUF/x2yPYYeRrWGd0fArf+eETQkfZn+7h+viGEDG6lQVSWYuUZ8ew6 5CQh4uYki0CmPbf524fzXrHEvgM7NVNCcjjZ4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=P5Hp0N2kM9JWVsxN+ZKIngIivSJvvRy/zmhB9x30tXSircvE55jnnH1vsRw1bTNHSO 74Gp6NV0sHFTR3RJLgvM3S4NIf6Zf4R6Y+PTjQ7MkY5QfmI9bRjZ+z9HRfo2htfzbN9S 6Y33QuJgolieZ2pKlMvCNia4yXo1Qr90fk+4Q=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
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 majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.