# activate
function activate(state)Performs the activate operation for the miniquake2 server administration module.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
src/miniquake2/server/administration.mlProvides miniquake2 server administration facilities for this project.
miniquake2/network/constants.ml as adminnc → src/miniquake2/network/constants.mlminiquake2/qcommon/text.ml as admintext → src/miniquake2/qcommon/text.mlminiquake2/qcommon/types.ml as adminqtypes → src/miniquake2/qcommon/types.mlstd/fs.ml as adminfs → ../MiniLangCompilerML/std/fs.ml external dependencyfunction activate(state)Performs the activate operation for the miniquake2 server administration module.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
function active()Report whether active.
activeAdministrationStores module-wide active administration state for the miniquake2 server administration module.
function addIp(state, value)Add ip.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
miniquake2.server.administration.Administration struct
function configText(state)Return the config text value.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
function configureMasters(state, arguments, startIndex)Configure masters.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
arguments | dynamic | — | arguments value consumed by this operation. |
startIndex | dynamic | — | Zero-based index of start. |
function constantTimeEqual(first, second)Report whether constant time equal.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
function create()Creates create for the miniquake2 server administration module.
function decimalOctet(source, start, endIndex)Return the decimal octet value.
| Parameter | Type | Default | Description |
|---|---|---|---|
source | dynamic | — | source value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
endIndex | dynamic | — | Zero-based index of end. |
const DEFAULT_MASTER_PORT = 27900Defines the default master port constant used by the miniquake2 server administration module.
function filterPacket(state, address)True means the connect must be rejected, mirroring SV_FilterPacket.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
address | dynamic | — | address value consumed by this operation. |
function filterText(filter)Filter text.
| Parameter | Type | Default | Description |
|---|---|---|---|
filter | dynamic | — | filter value consumed by this operation. |
miniquake2.server.administration.IpFilter struct
function listIp(state)Return the list ip value.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
function matches(filter, address)Return the matches value.
| Parameter | Type | Default | Description |
|---|---|---|---|
filter | dynamic | — | filter value consumed by this operation. |
address | dynamic | — | address value consumed by this operation. |
const MAX_IP_FILTERS = 1024Defines the max ip filters constant used by the miniquake2 server administration module.
const MAX_RCON_PASSWORD_BYTES = 128Defines the max rcon password bytes constant used by the miniquake2 server administration module.
const MIN_RCON_PASSWORD_BYTES = 8Defines the min rcon password bytes constant used by the miniquake2 server administration module.
function parseEndpoint(value)Parse endpoint.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function parseFilter(value)StringToFilter intentionally retains the original zero-octet wildcard rule. Consequently "192.0" describes 192.*.*.*, exactly as baseq2 3.19.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function printablePassword(value)Return the printable password value.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function rconValid(state, supplied)Report whether rcon valid.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
supplied | dynamic | — | supplied value consumed by this operation. |
function removeIp(state, value)Remove ip.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
function sameFilter(first, second)Filter same.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
function serverCommand(state, arguments)Return the server command value.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
arguments | dynamic | — | arguments value consumed by this operation. |
function setFilterBan(state, value)Set filter ban.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
function setWritePath(state, path)Set write path.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
path | dynamic | — | Path of the file or directory used by the operation. |
function takeMasterPing(state)Consume master ping.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
function writeIp(state)Use an adjacent verified temporary file so a failed write never truncates the active access-control policy.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |