MiniQuake2

src/miniquake2/protocol/packet.ml

Provides miniquake2 protocol packet facilities for this project.

Package
miniquake2.protocol.packet
Reachable
Yes

Imports

Declarations

decodeConnectionless

function decodeConnectionless(data)

Decode connectionless.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.

View source

decodeConnectionlessText

function decodeConnectionlessText(data)

Decode connectionless text.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.

View source

decodeHeader

function decodeHeader(data, hasQport)

Decode header.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
hasQportdynamic—hasQport value consumed by this operation.

View source

decodePacket

function decodePacket(data, hasQport)

Decode packet.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
hasQportdynamic—hasQport value consumed by this operation.

View source

encodeConnectionless

function encodeConnectionless(payload)

Encode connectionless.

ParameterTypeDefaultDescription
payloaddynamic—payload value consumed by this operation.

View source

encodeConnectionlessText

function encodeConnectionlessText(text)

Encode connectionless text.

ParameterTypeDefaultDescription
textdynamic—Text consumed by the operation.

View source

encodeHeader

function encodeHeader(header, includeQport)

Encode header.

ParameterTypeDefaultDescription
headerdynamic—header value consumed by this operation.
includeQportdynamic—includeQport value consumed by this operation.

View source

isConnectionless

function isConnectionless(data)

Report whether is connectionless.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.

View source

join

function join(headerBytes, first, second)

Join state.

ParameterTypeDefaultDescription
headerBytesdynamic—headerBytes value consumed by this operation.
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.

View source

validSequence

function validSequence(value)

Report whether valid sequence.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source