# clearAfterSend
function clearAfterSend(result)Update module state for after send.
| Parameter | Type | Default | Description |
|---|---|---|---|
result | dynamic | — | Result value to report or translate into a status code. |
src/miniquake/protocol_delivery.mlfunction clearAfterSend(result)Update module state for after send.
| Parameter | Type | Default | Description |
|---|---|---|---|
result | dynamic | — | Result value to report or translate into a status code. |
function clientReliablePlan(connected, messageSize, canSend)Implements the `clientReliablePlan` operation for `miniquake.protocol_delivery` (client reliable plan).
| Parameter | Type | Default | Description |
|---|---|---|---|
connected | dynamic | — | The connected input consumed by `clientReliablePlan`. |
messageSize | dynamic | — | Size of the requested data or resource. |
canSend | dynamic | — | The can send input consumed by `clientReliablePlan`. |
inline function keepaliveDue(elapsed)Implements the `keepaliveDue` operation for `miniquake.protocol_delivery` (keepalive due).
| Parameter | Type | Default | Description |
|---|---|---|---|
elapsed | dynamic | — | The elapsed input consumed by `keepaliveDue`. |
function reliableSendOutcome(result)Implements the `reliableSendOutcome` operation for `miniquake.protocol_delivery` (reliable send outcome).
| Parameter | Type | Default | Description |
|---|---|---|---|
result | dynamic | — | Result value to report or translate into a status code. |
function reliableWorkPending(messageSize, dropAsap)Implements the `reliableWorkPending` operation for `miniquake.protocol_delivery` (reliable work pending).
| Parameter | Type | Default | Description |
|---|---|---|---|
messageSize | dynamic | — | Size of the requested data or resource. |
dropAsap | dynamic | — | The drop asap input consumed by `reliableWorkPending`. |
const SEND_COMMIT = 3Defines the send commit value used by `miniquake.protocol_delivery`.
const SEND_DROP = 1Defines the send drop value used by `miniquake.protocol_delivery`.
const SEND_RETAIN = 2Defines the send retain value used by `miniquake.protocol_delivery`.