(net/chunk stream nbytes &opt buf) Same a net/read, but will wait for all n bytes to arrive rather than return early.
(net/close stream) Close a stream so that no further communication can occur.
(net/connect host port) Open a connection to communicate with a server. Returns a duplex stream that can be used to communicate with the server.
(net/read stream nbytes &opt buf) Read up to n bytes from a stream, suspending the current fiber until the bytes are available. If less than n bytes are available (and more than 0), will push those bytes and return early. Returns a buffer with up to n more bytes in it.
(net/server host port handler) Start a TCP server. handler is a function that will be called with a stream on each connection to the server. Returns a new stream that is neither readable nor writeable.
(net/write stream data) Write data to a stream, suspending the current fiber until the write completes. Returns stream.