[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] splice()/sendfile() with sockets
- To: libevent-users <libevent-users@xxxxxxxxxxxxx>
- Subject: [Libevent-users] splice()/sendfile() with sockets
- From: Vincent Bernat <bernat@xxxxxxxx>
- Date: Tue, 28 Jan 2014 01:09:24 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Mon, 27 Jan 2014 19:17:00 -0500
- Dkim-signature: v=1; a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:subject :date:message-id:mime-version:content-type; s=postfix; bh=5VgAC2 zUVYnCt/uJbdhXvmFLnQo=; b=AENCl+jqbv/0SohbQXAfN0tp+ceQByespih9Vi Vr0YvN4di4wJ1xQeUgMGhG8uk9ox0913IcR51EanGjtPWRSA3AS/HVTTiBEDYVvl 7sVT65BtOy8kYDIUeqs/yvR4XE4F33uH3dViFs/diXm7t8VrVJu4mKf4AUSO0NTJ oI4Qo=
- Domainkey-signature: a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=postfix; b= u4XZXUOx1x8qVWRWqZYGcGbME1pLu7oJL064NcJzV2/yUh41QBRatZXjn69x/uYr Vpg+l+PyMYuREdQWgtfXisquN5WhiA7985LDpGM9xkCQ3/XdY6laorgaCtngZV91 OJdxEOaLh81sI91oUSTulTm9cToDXg/bC+YkP84PNXw=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
- User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)
Hi!
Currently, libevent is not using splice() syscall but it is mentioned at
several places. It could be used in place of sendfile(). This would be
convenient since it would allow to copy one socket to another through
event buffers without the data to be copied in user memory. Does the use
of splice() instead of sendfile() be difficult? Would this allow
evbuffer_add_file() to be used with sockets?
--
HARDFAIL("Not enough magic.");
2.4.0-test2 /usr/src/linux/drivers/block/nbd.c
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.