Available on macro
staticselect(read:Array<Socket>, write:Array<Socket>, others:Array<Socket>, ?timeout:Float):{write:Array<Socket>, read:Array<Socket>, others:Array<Socket>}
new()
accept():NativeSocket
bind(host:Int, port:Int):Void
close():Void
connect(host:Int, port:Int):Void
host():{port:Int, ip:Int}
listen(connections:Int):Void
peer():{port:Int, ip:Int}
receive(buf:Bytes, pos:Int, len:Int):Int
receiveChar():Int
send(buf:Bytes, pos:Int, len:Int):Int
sendChar(char:Int):Void
setFastSend(b:Bool):Void
setTimeout(timeout:Float):Void
shutdown(read:Bool, write:Bool):Void