Concrete implementation of a Local Unix Socket using native system calls.

Static methods

Constructor

Methods

@:has_untypedaccept():ISocket

bind(path:String):Bool

close():Void

connect(path:String):Bool

@:value({ backlog : 5 })listen(backlog:Int = 5):Bool

read(buffer:Bytes, length:Int):Int

readAll():Bytes

Reads all available data from the socket. In blocking mode, this will read until EOF. In non-blocking mode, this will read all currently available data.

setBlocking(blocking:Bool):Bool

write(buffer:Bytes, length:Int):Int