Static methods

staticclose(handle:Handle, callback:() ‑> Void):Void

Closes the given handle.

statichasRef(handle:Handle):Bool

Returns true if the handle referenced, false otherwise.

See also:

staticisActive(handle:Handle):Bool

Returns true if the handle is active, false otherwise.

staticisClosing(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.

staticrecvBufferSize(handle:SocketHandle):Result<Int>

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

See also:

staticref(handle:Handle):Void

Reference the given handle.

See also:

staticsendBufferSize(handle:SocketHandle):Result<Int>

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

See also:

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

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

See also:

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

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

See also:

staticunref(handle:Handle):Void

Un-reference the given handle.

See also: