Available on hl
new(?loop:Loop)
accept():Stream
bind(host:Host, port:Int):Void
connect(host:Host, port:Int, onConnected:Bool ‑> Void):Void
noDelay(b:Bool):Void
handle:HandleData
listen(n:Int, onConnect:() ‑> Void):Void
readStart(onData:Bytes ‑> Void):Void
readStartRaw(onData:(Bytes, Int) ‑> Void):Void
readStop():Void
@:value({ len : -1, pos : 0 })write(bytes:Bytes, ?onWrite:Bool ‑> Void, pos:Int = 0, len:Int = -1):Void
close(?callb:() ‑> Void):Void