Receives up to buffer.length bytes from the socket, and stores them in buffer.
The buffer to store received bytes in.
The number of bytes read, or -1 in case of error.
See Implementation
Receives up to buffer.length bytes from the socket, and stores them in buffer.