# CCREP_ACCEPT
const CCREP_ACCEPT = 129Defines the ccrep accept value used by `miniquake.net_control`.
src/miniquake/net_control.mlminiquake/message.ml as msg → src/miniquake/message.mlminiquake/net_datagram.ml as datagram → src/miniquake/net_datagram.mlminiquake/sizebuf.ml as sz → src/miniquake/sizebuf.mlconst CCREP_ACCEPT = 129Defines the ccrep accept value used by `miniquake.net_control`.
const CCREP_PLAYER_INFO = 132Defines the ccrep player info value used by `miniquake.net_control`.
const CCREP_REJECT = 130Defines the ccrep reject value used by `miniquake.net_control`.
const CCREP_RULE_INFO = 133Defines the ccrep rule info value used by `miniquake.net_control`.
const CCREP_SERVER_INFO = 131Defines the ccrep server info value used by `miniquake.net_control`.
const CCREQ_CONNECT = 1Defines the ccreq connect value used by `miniquake.net_control`.
const CCREQ_PLAYER_INFO = 3Defines the ccreq player info value used by `miniquake.net_control`.
const CCREQ_RULE_INFO = 4Defines the ccreq rule info value used by `miniquake.net_control`.
const CCREQ_SERVER_INFO = 2Defines the ccreq server info value used by `miniquake.net_control`.
const GAME_NAME = "QUAKE"Defines the game name value used by `miniquake.net_control`.
const NET_PROTOCOL_VERSION = 3Defines the net protocol version value used by `miniquake.net_control`.
function parse(wirePacket)Returns [command, fields]. The field order is the exact net.h wire order.
| Parameter | Type | Default | Description |
|---|---|---|---|
wirePacket | dynamic | — | The wire packet input consumed by `parse`. |
function replyAccept(port)Implements the `replyAccept` operation for `miniquake.net_control` (reply accept).
| Parameter | Type | Default | Description |
|---|---|---|---|
port | dynamic | — | The port input consumed by `replyAccept`. |
function replyPlayerInfo(playerNumber, name, colors, frags, connectTime, address)Implements the `replyPlayerInfo` operation for `miniquake.net_control` (reply player info).
| Parameter | Type | Default | Description |
|---|---|---|---|
playerNumber | dynamic | — | The player number input consumed by `replyPlayerInfo`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
colors | dynamic | — | The colors input consumed by `replyPlayerInfo`. |
frags | dynamic | — | The frags input consumed by `replyPlayerInfo`. |
connectTime | dynamic | — | Time value used by the operation. |
address | dynamic | — | Network address of the peer. |
function replyReject(reason)Implements the `replyReject` operation for `miniquake.net_control` (reply reject).
| Parameter | Type | Default | Description |
|---|---|---|---|
reason | dynamic | — | The reason input consumed by `replyReject`. |
function replyRuleInfo(rule, value)Implements the `replyRuleInfo` operation for `miniquake.net_control` (reply rule info).
| Parameter | Type | Default | Description |
|---|---|---|---|
rule | dynamic | — | The rule input consumed by `replyRuleInfo`. |
value | dynamic | — | Value consumed by `replyRuleInfo`. |
function replyServerInfo(address, hostName, levelName, currentPlayers, maxPlayers)Implements the `replyServerInfo` operation for `miniquake.net_control` (reply server info).
| Parameter | Type | Default | Description |
|---|---|---|---|
address | dynamic | — | Network address of the peer. |
hostName | dynamic | — | Name that identifies the requested value or resource. |
levelName | dynamic | — | Name that identifies the requested value or resource. |
currentPlayers | dynamic | — | The current players input consumed by `replyServerInfo`. |
maxPlayers | dynamic | — | The max players input consumed by `replyServerInfo`. |
function requestConnect()Implements the `requestConnect` operation for `miniquake.net_control` (request connect).
function requestPlayerInfo(playerNumber)Implements the `requestPlayerInfo` operation for `miniquake.net_control` (request player info).
| Parameter | Type | Default | Description |
|---|---|---|---|
playerNumber | dynamic | — | The player number input consumed by `requestPlayerInfo`. |
function requestRuleInfo(previousRule)Implements the `requestRuleInfo` operation for `miniquake.net_control` (request rule info).
| Parameter | Type | Default | Description |
|---|---|---|---|
previousRule | dynamic | — | The previous rule input consumed by `requestRuleInfo`. |
function requestServerInfo()Implements the `requestServerInfo` operation for `miniquake.net_control` (request server info).
inline function validConnectRequest(parsed)Report whether valid connect request.
| Parameter | Type | Default | Description |
|---|---|---|---|
parsed | dynamic | — | The parsed input consumed by `validConnectRequest`. |
function validQuakeRequest(parsed)Report whether valid quake request.
| Parameter | Type | Default | Description |
|---|---|---|---|
parsed | dynamic | — | The parsed input consumed by `validQuakeRequest`. |
inline function validServerInfoRequest(parsed)Report whether valid server info request.
| Parameter | Type | Default | Description |
|---|---|---|---|
parsed | dynamic | — | The parsed input consumed by `validServerInfoRequest`. |
function wrap(buffer)Implements the `wrap` operation for `miniquake.net_control` (wrap).
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `wrap`. |