MiniQuake2

src/miniquake2/server/administration.ml

Provides miniquake2 server administration facilities for this project.

Package
miniquake2.server.administration
Reachable
Yes

Imports

Declarations

activate

function activate(state)

Performs the activate operation for the miniquake2 server administration module.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source

active

function active()

Report whether active.

View source

activeAdministration

activeAdministration

Stores module-wide active administration state for the miniquake2 server administration module.

View source

addIp

function addIp(state, value)

Add ip.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
valuedynamic—Value consumed or transformed by the operation.

View source

miniquake2.server.administration.Administration struct

configText

function configText(state)

Return the config text value.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source

configureMasters

function configureMasters(state, arguments, startIndex)

Configure masters.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
argumentsdynamic—arguments value consumed by this operation.
startIndexdynamic—Zero-based index of start.

View source

constantTimeEqual

function constantTimeEqual(first, second)

Report whether constant time equal.

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

View source

create

function create()

Creates create for the miniquake2 server administration module.

View source

decimalOctet

function decimalOctet(source, start, endIndex)

Return the decimal octet value.

ParameterTypeDefaultDescription
sourcedynamic—source value consumed by this operation.
startdynamic—start value consumed by this operation.
endIndexdynamic—Zero-based index of end.

View source

DEFAULT_MASTER_PORT

const DEFAULT_MASTER_PORT = 27900

Defines the default master port constant used by the miniquake2 server administration module.

View source

filterPacket

function filterPacket(state, address)

True means the connect must be rejected, mirroring SV_FilterPacket.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
addressdynamic—address value consumed by this operation.

View source

filterText

function filterText(filter)

Filter text.

ParameterTypeDefaultDescription
filterdynamic—filter value consumed by this operation.

View source

miniquake2.server.administration.IpFilter struct

listIp

function listIp(state)

Return the list ip value.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source

matches

function matches(filter, address)

Return the matches value.

ParameterTypeDefaultDescription
filterdynamic—filter value consumed by this operation.
addressdynamic—address value consumed by this operation.

View source

MAX_IP_FILTERS

const MAX_IP_FILTERS = 1024

Defines the max ip filters constant used by the miniquake2 server administration module.

View source

MAX_RCON_PASSWORD_BYTES

const MAX_RCON_PASSWORD_BYTES = 128

Defines the max rcon password bytes constant used by the miniquake2 server administration module.

View source

MIN_RCON_PASSWORD_BYTES

const MIN_RCON_PASSWORD_BYTES = 8

Defines the min rcon password bytes constant used by the miniquake2 server administration module.

View source

parseEndpoint

function parseEndpoint(value)

Parse endpoint.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

parseFilter

function parseFilter(value)

StringToFilter intentionally retains the original zero-octet wildcard rule. Consequently "192.0" describes 192.*.*.*, exactly as baseq2 3.19.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

printablePassword

function printablePassword(value)

Return the printable password value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

rconValid

function rconValid(state, supplied)

Report whether rcon valid.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
supplieddynamic—supplied value consumed by this operation.

View source

removeIp

function removeIp(state, value)

Remove ip.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
valuedynamic—Value consumed or transformed by the operation.

View source

sameFilter

function sameFilter(first, second)

Filter same.

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

View source

serverCommand

function serverCommand(state, arguments)

Return the server command value.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
argumentsdynamic—arguments value consumed by this operation.

View source

setFilterBan

function setFilterBan(state, value)

Set filter ban.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
valuedynamic—Value consumed or transformed by the operation.

View source

setRconPassword

function setRconPassword(state, value)

Empty disables RCON like 3.19. Non-empty secrets get a modern minimum and must remain one printable command token; this avoids ambiguous wire parsing.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
valuedynamic—Value consumed or transformed by the operation.

View source

setWritePath

function setWritePath(state, path)

Set write path.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
pathdynamic—Path of the file or directory used by the operation.

View source

takeMasterPing

function takeMasterPing(state)

Consume master ping.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source

writeIp

function writeIp(state)

Use an adjacent verified temporary file so a failed write never truncates the active access-control policy.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source