Writes bytes from buffer to the socket.
The buffer to write bytes from.
The number of bytes written, or -1 in case of error.
See Implementation
Writes bytes from buffer to the socket.