MiniQuake

src/miniquake/net_udp.ml

Package
miniquake.net_udp
Reachable
Yes

Imports

Declarations

broadcast

function broadcast(socketValue, port, payload)

Implements the `broadcast` operation for `miniquake.net_udp` (broadcast).

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `broadcast`.
portdynamic—The port input consumed by `broadcast`.
payloaddynamic—The payload input consumed by `broadcast`.

View source

close

function close(socketValue)

Implements the `close` operation for `miniquake.net_udp` (close).

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `close`.

View source

configureBindAddress

function configureBindAddress(address)

Update subsystem configuration for configure bind address.

ParameterTypeDefaultDescription
addressdynamic—Network address of the peer.

View source

defaultBindAddress

defaultBindAddress

Tracks the module-level default bind address state owned by `miniquake.net_udp`.

View source

hostName

function hostName()

Apply the Quake-compatible host name behavior.

View source

localAddress

function localAddress()

Implements the `localAddress` operation for `miniquake.net_udp` (local address).

View source

makeBroadcastCapable

function makeBroadcastCapable(socketValue)

Create and initialize broadcast capable.

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `makeBroadcastCapable`.

View source

MAX_UDP_PAYLOAD

const MAX_UDP_PAYLOAD = 65507

Defines the max udp payload value used by `miniquake.net_udp`.

View source

open

function open(port)

Implements the `open` operation for `miniquake.net_udp` (open).

ParameterTypeDefaultDescription
portdynamic—The port input consumed by `open`.

View source

openBound

function openBound(port, bindAddress)

Initialize state for open bound.

ParameterTypeDefaultDescription
portdynamic—The port input consumed by `openBound`.
bindAddressdynamic—The bind address input consumed by `openBound`.

View source

peek

function peek(socketValue)

Implements the `peek` operation for `miniquake.net_udp` (peek).

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `peek`.

View source

receive

function receive(socketValue, capacity)

Implements the `receive` operation for `miniquake.net_udp` (receive).

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `receive`.
capacitydynamic—Maximum number of entries the destination can hold.

View source

receiveScratch

receiveScratch

Tracks the module-level receive scratch state owned by `miniquake.net_udp`.

View source

resolveName

function resolveName(name)

Return resolve name derived from the active module state.

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.

View source

reverseName

function reverseName(address)

Return reverse name derived from the active module state.

ParameterTypeDefaultDescription
addressdynamic—Network address of the peer.

View source

send

function send(socketValue, address, port, payload)

Send the requested value through the active connection.

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `send`.
addressdynamic—Network address of the peer.
portdynamic—The port input consumed by `send`.
payloaddynamic—The payload input consumed by `send`.

View source

smoke

function smoke(timeoutMilliseconds)

Implements the `smoke` operation for `miniquake.net_udp` (smoke).

ParameterTypeDefaultDescription
timeoutMillisecondsdynamic—The timeout milliseconds input consumed by `smoke`.

View source