Available on lua
staticnew_tty(fd:Int, readable:Bool):Tty
staticreset_mode():Int
@:native("new_tty")new(fd:Int, readable:Bool)
get_winsize():WidthHeight
set_mode(mode:Int):Int
accept(client_stream:Stream):Int
is_readable():Bool
is_writable():Bool
listen(backlog:Int, cb:(String, String) ‑> Void):Int
read_start(cb:(String, String) ‑> Void):Int
read_stop():Int
set_blocking(blocking:Bool):Int
shutdown(?cb:() ‑> Void):Int
try_write(data:StreamData):Int
write(data:StreamData, ?cb:(String, Bool) ‑> Void):Int
write2(data:StreamData, send_handle:Tcp, cb:(String, Bool) ‑> Void):Int
close():Void
fileno():Int
has_ref():Bool
is_active():Bool
is_closing():Bool
recv_buffer_size(size:Int):Int
ref():Void
send_buffer_size(size:Int):Int
unref():Void