Files
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).
| Parameter | Type | Default | Description |
|---|
socketValue | dynamic | — | The socket value input consumed by `broadcast`. |
port | dynamic | — | The port input consumed by `broadcast`. |
payload | dynamic | — | The payload input consumed by `broadcast`. |
View source
# close
function close(socketValue)
Implements the `close` operation for `miniquake.net_udp` (close).
| Parameter | Type | Default | Description |
|---|
socketValue | dynamic | — | The socket value input consumed by `close`. |
View source
# configureBindAddress
function configureBindAddress(address)
Update subsystem configuration for configure bind address.
| Parameter | Type | Default | Description |
|---|
address | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
socketValue | dynamic | — | 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).
| Parameter | Type | Default | Description |
|---|
port | dynamic | — | The port input consumed by `open`. |
View source
# openBound
function openBound(port, bindAddress)
Initialize state for open bound.
| Parameter | Type | Default | Description |
|---|
port | dynamic | — | The port input consumed by `openBound`. |
bindAddress | dynamic | — | The bind address input consumed by `openBound`. |
View source
# peek
function peek(socketValue)
Implements the `peek` operation for `miniquake.net_udp` (peek).
| Parameter | Type | Default | Description |
|---|
socketValue | dynamic | — | The socket value input consumed by `peek`. |
View source
# receive
function receive(socketValue, capacity)
Implements the `receive` operation for `miniquake.net_udp` (receive).
| Parameter | Type | Default | Description |
|---|
socketValue | dynamic | — | The socket value input consumed by `receive`. |
capacity | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
View source
# reverseName
function reverseName(address)
Return reverse name derived from the active module state.
| Parameter | Type | Default | Description |
|---|
address | dynamic | — | Network address of the peer. |
View source
# send
function send(socketValue, address, port, payload)
Send the requested value through the active connection.
| Parameter | Type | Default | Description |
|---|
socketValue | dynamic | — | The socket value input consumed by `send`. |
address | dynamic | — | Network address of the peer. |
port | dynamic | — | The port input consumed by `send`. |
payload | dynamic | — | The payload input consumed by `send`. |
View source
# smoke
function smoke(timeoutMilliseconds)
Implements the `smoke` operation for `miniquake.net_udp` (smoke).
| Parameter | Type | Default | Description |
|---|
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `smoke`. |
View source