Receives data from a connected or bound socket.
- Parameters
-
socket | Descriptor identifying a connected socket. |
pBuffer | Buffer for the incoming data. |
bufferSize | Length of pBuffer, in bytes. |
flags | Flag specifying the way in which the call is made. |
- Returns
- The number of bytes received. If the connection has been gracefully closed, the return value is zero.