Static methods

@:noExprstaticclose(handle:Handle, callback:() ‑> Void):Void

Closes the given handle.

@:noExprstatichasRef(handle:Handle):Bool

Returns true if the handle referenced, false otherwise.

See also:

@:noExprstaticisActive(handle:Handle):Bool

Returns true if the handle is active, false otherwise.

@:noExprstaticisClosing(handle:Handle):Bool

Returns true if the handle is closing or closed, false otherwise.

Note: This function should only be used between the initialization of the handle and the arrival of the close callback.

@:noExprstaticrecvBufferSize(handle:SocketHandle):Result<Int>

Gets the size of the OS receive buffer for a socket.

See also:

@:noExprstaticref(handle:Handle):Void

Reference the given handle.

See also:

@:noExprstaticsendBufferSize(handle:SocketHandle):Result<Int>

Gets the size of the OS send buffer for a socket.

See also:

@:noExprstaticsetRecvBufferSize(handle:SocketHandle, size:Int):Result<NoData>

Sets the size of the OS receive buffer for a socket.

See also:

@:noExprstaticsetSendBufferSize(handle:SocketHandle, size:Int):Result<NoData>

Sets the size of the OS send buffer for a socket.

See also:

@:noExprstaticunref(handle:Handle):Void

Un-reference the given handle.

See also: