# close
function close(socket)Close state.
| Parameter | Type | Default | Description |
|---|---|---|---|
socket | dynamic | — | socket value consumed by this operation. |
src/miniquake2/platform/udp.mlProvides miniquake2 platform udp facilities for this project.
miniquake2/native.ml as native → src/miniquake2/native.mlfunction close(socket)Close state.
| Parameter | Type | Default | Description |
|---|---|---|---|
socket | dynamic | — | socket value consumed by this operation. |
miniquake2.platform.udp.Datagram struct
function enableBroadcast(socket)Return the enable broadcast value.
| Parameter | Type | Default | Description |
|---|---|---|---|
socket | dynamic | — | socket value consumed by this operation. |
function open(address, port)Opens open for the miniquake2 platform udp module.
| Parameter | Type | Default | Description |
|---|---|---|---|
address | dynamic | — | address value consumed by this operation. |
port | dynamic | — | port value consumed by this operation. |
function pending(socket)Report whether pending.
| Parameter | Type | Default | Description |
|---|---|---|---|
socket | dynamic | — | socket value consumed by this operation. |
function receive(socket, capacity)Receive state.
| Parameter | Type | Default | Description |
|---|---|---|---|
socket | dynamic | — | socket value consumed by this operation. |
capacity | dynamic | — | capacity value consumed by this operation. |
function resolveName(name)Resolve name.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
function send(socket, address, port, data)Send state.
| Parameter | Type | Default | Description |
|---|---|---|---|
socket | dynamic | — | socket value consumed by this operation. |
address | dynamic | — | address value consumed by this operation. |
port | dynamic | — | port value consumed by this operation. |
data | dynamic | — | Input data consumed by the operation. |