Writes as much data to the socket as there can be in a single OS call.
Data to write.
The actual number of bytes written. Never more than buf.length.
See Implementation
Writes as much data to the socket as there can be in a single OS call.