1830898 Members
2234 Online
110017 Solutions
New Discussion

sendfile use zero-copy?

 
Chris Flynn
Occasional Contributor

sendfile use zero-copy?

> Does anyone know if the sendfile support in hp-ux uses zero-copy (dma)
> on the network card?
1 REPLY 1
James A. Donovan
Honored Contributor

Re: sendfile use zero-copy?

Chris,

Under HP 11.0, FTP can use the sendfile() function call to read from the file system buffer cache and writes to a connected socket. Don't know if anything else has been modified to be able to use sendfile().

...from the sendfile manpage

sendfile(2) sendfile(2)

NAME
sendfile() - send the contents of a file through a socket

SYNOPSIS
#include

ssize_t sendfile(int s, int fd, off_t offset, size_t nbytes,
const struct iovec *hdtrl, int flags);

DESCRIPTION
The sendfile() system call transmits the contents of a file associated
with the file descriptor fd , plus an optional header and trailer
buffers across a socket connection specified by s . sendfile() can be
used only when the socket is in a connected state.
.
.
.

Remember, wherever you go, there you are...