The stream on which you can read available data. By default the stream is blocking until the requested data is available,
use setBlocking(false) or setTimeout to prevent infinite waiting.
The stream on which you can send data. Please note that in case the output buffer you will block while writing the data, use setBlocking(false) or setTimeout to prevent that.
Allow the socket to listen for incoming questions. The parameter tells how many pending connections we can have until they get refused. Use accept() to accept incoming connections.
Note: this is not meant to be used together with setBlocking(false),
as it will always throw haxe.io.Error.Blocked. input methods should be used directly instead.
Change the blocking mode of the socket. A blocking socket is the default behavior. A non-blocking socket will abort blocking operations immediately by throwing a haxe.io.Error.Blocked value.
Allows the socket to immediately send the data when written to its output : this will cause less ping but might increase the number of packets / data size, especially when doing a lot of small writes.
Note: this is not meant to be used together with setBlocking(false), as
haxe.io.Error.Blocked may be thrown mid-write with no indication of how many bytes have been written.
output.writeBytes() should be used instead as it returns this information.