Store socket data into memory directly.
- Parameters:
-
| mem | memory buffer pointer |
| sockfd | socket descriptor |
| nbytes | length of bytes to read from socket |
| timeoutms | wait timeout milliseconds |
- Returns:
- the number of bytes sent on success, or -1 if an error(ex:socket closed) occurred.
- Since:
- 8.1R
- Note:
- timeoutms is not the total retrieving time. only affected if no data reached to socket until timeoutms reached. if some data are received, it will wait until timeoutms reached again.
Definition at line 420 of file qSocket.c.