NativeSocket

package eval.vm

Available on macro

Static methods

staticselect(read:Array<Socket>, write:Array<Socket>, others:Array<Socket>, ?timeout:Float):{write:Array<Socket>, read:Array<Socket>, others:Array<Socket>}

Constructor

new()

Methods

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

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/eval/vm/NativeSocket.html