Asynchronous reading and writing of messages using the packed stream encoding.
AsyncReadwrapper that unpacks packed data.
AsyncWritewrapper that packs any data passed into it.
Asynchronously reads a message from
Asynchronously reads a packed message from
readhas zero bytes left (i.e. is at end-of-file). To read a stream containing an unknown number of messages, you could call this function repeatedly until it returns
Writes the provided message to
writer. Does not call
writer.flush(), so that multiple successive calls can amortize work when