TBlockSocket.RecvBuffer
TBlockSocket

function RecvBuffer(Buffer: Pointer; Length: Integer): Integer; virtual;

Unit
blcksock

Description
Waits until allocated buffer is filled by received data. Returns number of data received, which equals to LENGTH value under normal operation. If it is not equal the communication channel is possibly broken.

On stream oriented sockets if is received 0 bytes, it mean 'socket is closed!"

On datagram socket is readed first waiting datagram.


See also:
PeekBuffer, RecvBufferEx