MiniQuake2

src/miniquake2/network/client.ml

Provides miniquake2 network client facilities for this project.

Package
miniquake2.network.client
Reachable
Yes

Imports

Declarations

acceptFrame

function acceptFrame(client, frame)

Accept frame.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
framedynamic—frame value consumed by this operation.

View source

beginConnect

function beginConnect(client, serverName, serverAddress, userInfo, now)

Begin connect.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
serverNamedynamic—serverName value consumed by this operation.
serverAddressdynamic—serverAddress value consumed by this operation.
userInfodynamic—userInfo value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

checkForResend

function checkForResend(client, now)

Validate for resend.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

checkTimeout

function checkTimeout(client, now)

Validate timeout.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

connectLocal

function connectLocal(client, loopbackAddress, now)

Listen-server loopback skips the challenge round trip in Quake II 3.19.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
loopbackAddressdynamic—loopbackAddress value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

create

function create(qport, timeoutMsec)

Creates create for the miniquake2 network client module.

ParameterTypeDefaultDescription
qportdynamic—qport value consumed by this operation.
timeoutMsecdynamic—timeoutMsec value consumed by this operation.

View source

disconnect

function disconnect(client, now)

Return the disconnect value.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

disconnectCommand

function disconnectCommand()

Return the disconnect command value.

View source

handleConnectionless

function handleConnectionless(client, sender, datagram, now)

Handles connectionless for the miniquake2 network client workflow.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
senderdynamic—sender value consumed by this operation.
datagramdynamic—datagram value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

newCommand

function newCommand()

Return the new command value.

View source

parseFrame

function parseFrame(client, buffer, baselines)

Parse frame.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
bufferdynamic—Buffer that receives or supplies the operation data.
baselinesdynamic—baselines value consumed by this operation.

View source

parseFrameProtocol

function parseFrameProtocol(client, buffer, baselines, protocol)

Parse frame protocol.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
bufferdynamic—Buffer that receives or supplies the operation data.
baselinesdynamic—baselines value consumed by this operation.
protocoldynamic—protocol value consumed by this operation.

View source

rconAction

function rconAction(client, alternateAddress, password, command)

Build the client's out-of-band remote-console request. Connected clients target their current server; a disconnected console may supply rcon_address.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
alternateAddressdynamic—alternateAddress value consumed by this operation.
passworddynamic—password value consumed by this operation.
commanddynamic—command value consumed by this operation.

View source

receiveSequenced

function receiveSequenced(client, sender, datagram, now)

Receive sequenced.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
senderdynamic—sender value consumed by this operation.
datagramdynamic—datagram value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

reconnect

function reconnect(client, now)

Return the reconnect value.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

senderMatches

function senderMatches(client, sender)

Return the sender matches value.

ParameterTypeDefaultDescription
clientdynamic—client value consumed by this operation.
senderdynamic—sender value consumed by this operation.

View source