Writes data to the socket.
The number of bytes that were written.
SocketException on failure.
See Implementation
Writes data to the socket.