complement to sendfile()?

Mikhail Teterin mi+mx at aldan.algebra.com
Thu Jul 20 02:30:30 UTC 2006


Hello!

My program receives data from the socket and writes it to a file -- with the 
usual read()/write() tedium.

Is there anything zero-copying like sendfile() for the socket->file direction?

In fact, sendfile's API may allow to use it in any direction, but the manual 
is quite explicit, that the second (destination) argument must be socket.

recvfile()? Thanks!

	-mi


More information about the freebsd-net mailing list