MiniQuake

src/miniquake/protocol_delivery.ml

Package
miniquake.protocol_delivery
Reachable
Yes

Declarations

clearAfterSend

function clearAfterSend(result)

Update module state for after send.

ParameterTypeDefaultDescription
resultdynamic—Result value to report or translate into a status code.

View source

clientReliablePlan

function clientReliablePlan(connected, messageSize, canSend)

Implements the `clientReliablePlan` operation for `miniquake.protocol_delivery` (client reliable plan).

ParameterTypeDefaultDescription
connecteddynamic—The connected input consumed by `clientReliablePlan`.
messageSizedynamic—Size of the requested data or resource.
canSenddynamic—The can send input consumed by `clientReliablePlan`.

View source

keepaliveDue

inline function keepaliveDue(elapsed)

Implements the `keepaliveDue` operation for `miniquake.protocol_delivery` (keepalive due).

ParameterTypeDefaultDescription
elapseddynamic—The elapsed input consumed by `keepaliveDue`.

View source

reliableSendOutcome

function reliableSendOutcome(result)

Implements the `reliableSendOutcome` operation for `miniquake.protocol_delivery` (reliable send outcome).

ParameterTypeDefaultDescription
resultdynamic—Result value to report or translate into a status code.

View source

reliableWorkPending

function reliableWorkPending(messageSize, dropAsap)

Implements the `reliableWorkPending` operation for `miniquake.protocol_delivery` (reliable work pending).

ParameterTypeDefaultDescription
messageSizedynamic—Size of the requested data or resource.
dropAsapdynamic—The drop asap input consumed by `reliableWorkPending`.

View source

SEND_COMMIT

const SEND_COMMIT = 3

Defines the send commit value used by `miniquake.protocol_delivery`.

View source

SEND_DROP

const SEND_DROP = 1

Defines the send drop value used by `miniquake.protocol_delivery`.

View source

SEND_RETAIN

const SEND_RETAIN = 2

Defines the send retain value used by `miniquake.protocol_delivery`.

View source