ssize_t qSocketSaveIntoMemory ( char *  mem,
int  sockfd,
size_t  nbytes,
int  timeoutms 
)

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.


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