# acceptFrame
function acceptFrame(client, frame)Accept frame.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
frame | dynamic | — | frame value consumed by this operation. |
src/miniquake2/network/client.mlProvides miniquake2 network client facilities for this project.
miniquake2/network/address.ml as naddress → src/miniquake2/network/address.mlminiquake2/network/connectionless.ml as nconnectionless → src/miniquake2/network/connectionless.mlminiquake2/network/constants.ml as nc → src/miniquake2/network/constants.mlminiquake2/network/snapshot.ml as nsnapshot → src/miniquake2/network/snapshot.mlminiquake2/network/types.ml as nt → src/miniquake2/network/types.mlminiquake2/protocol/constants.ml as pc → src/miniquake2/protocol/constants.mlminiquake2/protocol/netchan.ml as pnetchan → src/miniquake2/protocol/netchan.mlminiquake2/qcommon/info.ml as qinfo → src/miniquake2/qcommon/info.mlfunction acceptFrame(client, frame)Accept frame.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
frame | dynamic | — | frame value consumed by this operation. |
function beginConnect(client, serverName, serverAddress, userInfo, now)Begin connect.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
serverName | dynamic | — | serverName value consumed by this operation. |
serverAddress | dynamic | — | serverAddress value consumed by this operation. |
userInfo | dynamic | — | userInfo value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
function checkForResend(client, now)Validate for resend.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
function checkTimeout(client, now)Validate timeout.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
function connectLocal(client, loopbackAddress, now)Listen-server loopback skips the challenge round trip in Quake II 3.19.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
loopbackAddress | dynamic | — | loopbackAddress value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
function create(qport, timeoutMsec)Creates create for the miniquake2 network client module.
| Parameter | Type | Default | Description |
|---|---|---|---|
qport | dynamic | — | qport value consumed by this operation. |
timeoutMsec | dynamic | — | timeoutMsec value consumed by this operation. |
function disconnect(client, now)Return the disconnect value.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
function disconnectCommand()Return the disconnect command value.
function handleConnectionless(client, sender, datagram, now)Handles connectionless for the miniquake2 network client workflow.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
sender | dynamic | — | sender value consumed by this operation. |
datagram | dynamic | — | datagram value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
function newCommand()Return the new command value.
function parseFrame(client, buffer, baselines)Parse frame.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
baselines | dynamic | — | baselines value consumed by this operation. |
function parseFrameProtocol(client, buffer, baselines, protocol)Parse frame protocol.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
baselines | dynamic | — | baselines value consumed by this operation. |
protocol | dynamic | — | protocol value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
alternateAddress | dynamic | — | alternateAddress value consumed by this operation. |
password | dynamic | — | password value consumed by this operation. |
command | dynamic | — | command value consumed by this operation. |
function receiveSequenced(client, sender, datagram, now)Receive sequenced.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
sender | dynamic | — | sender value consumed by this operation. |
datagram | dynamic | — | datagram value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
function reconnect(client, now)Return the reconnect value.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
function senderMatches(client, sender)Return the sender matches value.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | client value consumed by this operation. |
sender | dynamic | — | sender value consumed by this operation. |