off_t qSocketSendfile ( int  sockfd,
int  fd,
off_t  offset,
off_t  nbytes 
)

Send file to socket.

Parameters:
sockfd socket descriptor (out)
fd file descriptor (in)
offset file offset to send
nbytes total bytes to send. 0 means send data until EOF.
Returns:
the number of bytes sent on success, or -1 if an error(ex:socket closed) occurred.
Since:
8.1R

Definition at line 327 of file qSocket.c.


Generated on Mon Mar 26 07:00:51 2018 for JSOC_Documentation by  doxygen 1.5.7.1