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.