[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] evbuffer_add_file question
- To: libevent-users <libevent-users@xxxxxxxxxxxxx>
- Subject: Re: [Libevent-users] evbuffer_add_file question
- From: Niels Provos <provos@xxxxxxxxx>
- Date: Thu, 11 Feb 2010 16:26:41 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Thu, 11 Feb 2010 19:26:49 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=0/KFOSdcEDZZBXw9bkH1QsLJh1cPRy9HniNdEmXu5ME=; b=Je3yFprxW/noPaA/wQOrWBDUdpRb6hJTGJhQUWsw0aUOMhFy2ApAsvII4cS2tZQEt4 8SCKjeMz8M+UTuWUCaB5ipcdICiafXvuIsqWkwlv4CpFYTnmtFF12PXTtyg1zWW3dCyA VN+w3mZ3RuqQd7alGrEhs+68plKvKz4cYthLY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=K6gLI5N3Yx+ReyQaXrwXBbAk7kP5YviipyL6mbsuVFp5Z8tktHKJl6JPqSuYrKvPRT Qcd/ya1IVaQ6Ch6Tyco+ywnPSYrBK6Ygn0nZKn/KIcEdVq+wI/zYjB2IpR/0RstrB205 7LMr/P+S0RiZ8hBN1v/VTtaqeGme2Pdp4CURA=
- In-reply-to: <0DF54CA1-888C-4D44-9C5D-99C8BD4DBC70@xxxxxxxx>
- References: <0DF54CA1-888C-4D44-9C5D-99C8BD4DBC70@xxxxxxxx>
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
On Thu, Feb 11, 2010 at 3:28 PM, David M. Irvine <DIrvine@xxxxxxxx> wrote:
> I'm thinking of using evbuffer_add_file since it's integration with sendfile/splice looks really attractive. But I'm a little confused by the offset and length parameters, specifically their types: offset is defined as an off_t and length as a size_t. Is there a reason why both parameters shouldn't be of type off_t? Doing so would make length compatible with st_size field of the stat struct.
There is no particular reason. We should change it to off_t.
Niels.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.