xHarbour Reference Documentation > Function Reference |
Reads all data from a socket.
INetRecvAll( <pSocket>, @<cBuffer>, [<nBytes>] ) --> nBytesRead
The function returns a numeric value indicating the number of bytes read from the socket. If the return value is smaller than Len(<cBuffer>), either no more bytes are available, or a network error ocurred. This can be identified using function INetErrorCode().
Function INetRecvAll() does exactly the same a INetRecv(), but additionally blocks the current thread until the amount of <nBytes> is read from the socket, or the socket is prematurely closed.
See also: | INetAccept(), INetConnect(), INetErrorCode(), INetRecv(), INetRecvLine(), INetSend(), INetSendAll() |
Category: | Internet functions , Sockets functions , xHarbour extensions |
Source: | vm\INet.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com