Receive a single stream of data until the receive buffer is empty or an error occurs.
Sends a full payload (even when it biggen than the send buffer) and only returns when it is sent or on failure.
Socket used for writing and reading data.
Sends bytes to the connected socket.
Receives bytes from the connected socket.
Indicates the result of the last receive call performed on the connected socket.
Stream optimised for TCP connections. The given socket should be blocking.