Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2000 02:09:49 -0700
From:      David Greenman <dg@root.com>
To:        William Weston <weston@intercosmos.com>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: sendfile() questions 
Message-ID:  <200009200909.CAA05368@implode.root.com>
In-Reply-To: Your message of "Tue, 19 Sep 2000 10:57:20 CDT." <Pine.LNX.4.21.0009190916190.10738-100000@tesseract.intercosmos.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
>Is it better to put a packet header into an iovec and have sendfile() take
>care of it, or to write the header to the socket using writev() (or
>something similar) and then use sendfile just for sending the file off the
>filesystem?

   It's better to use header/trailer iovecs with sendfile(). You save a couple
of system calls that way.

-DG

David Greenman
Co-founder, The FreeBSD Project - http://www.freebsd.org
President, TeraSolutions, Inc. - http://www.terasolutions.com
Pave the road of life with opportunities.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009200909.CAA05368>