SDLNet.TCPSocket.receive:
Description:
public int receive (
uchar[] data)
Receive up to (the length of data) bytes of data over the non-server socket 'sock', and store them in the buffer pointed to by 'data'.
Parameters:
ptr: |
The buffer to store received data
|
Returns:
This function returns the actual amount of data received. If the return value is less than or equal to zero, then either the remote connection was closed, or an unknown socket error occurred.