cfunction
(net/write stream data &opt timeout)
Write data to a stream, suspending the current fiber until the write
completes. Takes an optional timeout in seconds, after which will
return nil. Returns nil, or raises an error if the write failed.