Writes data
to the socket. This method is unbuffered and non-blocking. This uses the sendto(2)
syscall internally.
For optimal performance with multiple small writes, consider batching multiple writes together into a single socket.write()
call.