Writes data to the socket.
The data to write to the file. The length of the slice indicates how much data should be written.
The number of bytes that were written.
SocketException on failure.
See Implementation
Writes data to the socket.