MiniQuake2

src/miniquake2/platform/udp.ml

Provides miniquake2 platform udp facilities for this project.

Package
miniquake2.platform.udp
Reachable
Yes

Imports

Declarations

close

function close(socket)

Close state.

ParameterTypeDefaultDescription
socketdynamic—socket value consumed by this operation.

View source

miniquake2.platform.udp.Datagram struct

enableBroadcast

function enableBroadcast(socket)

Return the enable broadcast value.

ParameterTypeDefaultDescription
socketdynamic—socket value consumed by this operation.

View source

open

function open(address, port)

Opens open for the miniquake2 platform udp module.

ParameterTypeDefaultDescription
addressdynamic—address value consumed by this operation.
portdynamic—port value consumed by this operation.

View source

pending

function pending(socket)

Report whether pending.

ParameterTypeDefaultDescription
socketdynamic—socket value consumed by this operation.

View source

receive

function receive(socket, capacity)

Receive state.

ParameterTypeDefaultDescription
socketdynamic—socket value consumed by this operation.
capacitydynamic—capacity value consumed by this operation.

View source

resolveName

function resolveName(name)

Resolve name.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

send

function send(socket, address, port, data)

Send state.

ParameterTypeDefaultDescription
socketdynamic—socket value consumed by this operation.
addressdynamic—address value consumed by this operation.
portdynamic—port value consumed by this operation.
datadynamic—Input data consumed by the operation.

View source

miniquake2.platform.udp.Socket struct