Files
src/miniquake/net_loop.ml
- Package
miniquake.net_loop- Reachable
- Yes
Imports
Declarations
# _Datagram_CheckNewConnections
function _Datagram_CheckNewConnections(state)
Implements the `_Datagram_CheckNewConnections` operation for `miniquake.net_loop` (datagram check new connections).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `_Datagram_CheckNewConnections`. |
View source
# _Datagram_Connect
function _Datagram_Connect(state, host, timeoutMilliseconds)
Compatibility wrapper for callers that intentionally use the historical default port. Public NET_Connect passes the active net_hostport instead.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `_Datagram_Connect`. |
host | dynamic | — | The host input consumed by `_Datagram_Connect`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `_Datagram_Connect`. |
View source
# _Datagram_ConnectPort
function _Datagram_ConnectPort(state, host, timeoutMilliseconds, defaultPort)
Implements the `_Datagram_ConnectPort` operation for `miniquake.net_loop` (datagram connect port).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `_Datagram_ConnectPort`. |
host | dynamic | — | The host input consumed by `_Datagram_ConnectPort`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `_Datagram_ConnectPort`. |
defaultPort | dynamic | — | The default port input consumed by `_Datagram_ConnectPort`. |
View source
# _Datagram_SearchForHosts
function _Datagram_SearchForHosts(searchSocket, hosts, port, timeoutMilliseconds, xmit)
Implements the `_Datagram_SearchForHosts` operation for `miniquake.net_loop` (datagram search for hosts).
| Parameter | Type | Default | Description |
|---|
searchSocket | dynamic | — | The search socket input consumed by `_Datagram_SearchForHosts`. |
hosts | dynamic | — | The hosts input consumed by `_Datagram_SearchForHosts`. |
port | dynamic | — | The port input consumed by `_Datagram_SearchForHosts`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `_Datagram_SearchForHosts`. |
xmit | dynamic | — | The xmit input consumed by `_Datagram_SearchForHosts`. |
View source
# addressIsBanned
function addressIsBanned(state, address)
Add state for address is banned.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `addressIsBanned`. |
address | dynamic | — | Network address of the peer. |
View source
# arrayTail
function arrayTail(values)
Implements the `arrayTail` operation for `miniquake.net_loop` (array tail).
| Parameter | Type | Default | Description |
|---|
values | dynamic | — | The values input consumed by `arrayTail`. |
View source
# canSendMessage
function canSendMessage(socket)
Report whether can send message.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
View source
# checkNewConnections
function checkNewConnections(state)
Validate new connections and report any incompatibility.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `checkNewConnections`. |
View source
# close
function close(socket)
Implements the `close` operation for `miniquake.net_loop` (close).
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
View source
# compactRemoteSockets
function compactRemoteSockets(state)
Implements the `compactRemoteSockets` operation for `miniquake.net_loop` (compact remote sockets).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `compactRemoteSockets`. |
View source
# configureQueryData
function configureQueryData(state, players, rules)
Update subsystem configuration for configure query data.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `configureQueryData`. |
players | dynamic | — | The players input consumed by `configureQueryData`. |
rules | dynamic | — | The rules input consumed by `configureQueryData`. |
View source
# configureServer
function configureServer(state, hostName, mapName, currentPlayers, maxPlayers)
Update subsystem configuration for configure server.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `configureServer`. |
hostName | dynamic | — | Name that identifies the requested value or resource. |
mapName | dynamic | — | Name of the map to load or inspect. |
currentPlayers | dynamic | — | The current players input consumed by `configureServer`. |
maxPlayers | dynamic | — | The max players input consumed by `configureServer`. |
View source
# connect
function connect(state, host)
Implements the `connect` operation for `miniquake.net_loop` (connect).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `connect`. |
host | dynamic | — | The host input consumed by `connect`. |
View source
# connectionRequestAction
function connectionRequestAction(existing, port, now)
Implements the `connectionRequestAction` operation for `miniquake.net_loop` (connection request action).
| Parameter | Type | Default | Description |
|---|
existing | dynamic | — | The existing input consumed by `connectionRequestAction`. |
port | dynamic | — | The port input consumed by `connectionRequestAction`. |
now | dynamic | — | The now input consumed by `connectionRequestAction`. |
View source
# connectRemote
function connectRemote(state, address, port, timeoutMilliseconds)
Establish remote using the active network transport.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `connectRemote`. |
address | dynamic | — | Network address of the peer. |
port | dynamic | — | The port input consumed by `connectRemote`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `connectRemote`. |
View source
# connectRemotePersistent
function connectRemotePersistent(state, address, port, timeoutMilliseconds, resendMilliseconds)
External original-binary interoperability needs a persistent control socket. Reusing the same source endpoint and resending inside Quake's two-second duplicate window lets the original server repeat CCREP_ACCEPT instead of treating each short-lived process as a crashed client.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `connectRemotePersistent`. |
address | dynamic | — | Network address of the peer. |
port | dynamic | — | The port input consumed by `connectRemotePersistent`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `connectRemotePersistent`. |
resendMilliseconds | dynamic | — | The resend milliseconds input consumed by `connectRemotePersistent`. |
View source
# createRemoteSocket
function createRemoteSocket(udpSocket, address, port)
Create and initialize remote socket.
| Parameter | Type | Default | Description |
|---|
udpSocket | dynamic | — | The udp socket input consumed by `createRemoteSocket`. |
address | dynamic | — | Network address of the peer. |
port | dynamic | — | The port input consumed by `createRemoteSocket`. |
View source
# createSocket
function createSocket()
Create and initialize socket.
View source
# createState
function createState()
Creates state for `miniquake.net_loop`.
View source
# Datagram_CheckNewConnections
function Datagram_CheckNewConnections(state)
Mirror Quake's Datagram_CheckNewConnections routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `Datagram_CheckNewConnections`. |
View source
# Datagram_Close
function Datagram_Close(socket)
Mirror Quake's Datagram_Close routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
View source
# Datagram_Connect
function Datagram_Connect(state, host, timeoutMilliseconds)
Mirror Quake's Datagram_Connect routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `Datagram_Connect`. |
host | dynamic | — | The host input consumed by `Datagram_Connect`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `Datagram_Connect`. |
View source
# Datagram_ConnectPersistent
function Datagram_ConnectPersistent(state, host, timeoutMilliseconds, resendMilliseconds, defaultPort)
Mirror Quake's Datagram_ConnectPersistent routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `Datagram_ConnectPersistent`. |
host | dynamic | — | The host input consumed by `Datagram_ConnectPersistent`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `Datagram_ConnectPersistent`. |
resendMilliseconds | dynamic | — | The resend milliseconds input consumed by `Datagram_ConnectPersistent`. |
defaultPort | dynamic | — | The default port input consumed by `Datagram_ConnectPersistent`. |
View source
# Datagram_ConnectPort
function Datagram_ConnectPort(state, host, timeoutMilliseconds, defaultPort)
Mirror Quake's Datagram_ConnectPort routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `Datagram_ConnectPort`. |
host | dynamic | — | The host input consumed by `Datagram_ConnectPort`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `Datagram_ConnectPort`. |
defaultPort | dynamic | — | The default port input consumed by `Datagram_ConnectPort`. |
View source
# Datagram_EndHostSearch
function Datagram_EndHostSearch()
Finish a multi-frame server search and release its persistent control socket.
View source
# Datagram_HostSearchActive
function Datagram_HostSearchActive()
Report whether LAN discovery currently owns its non-blocking control socket.
View source
# Datagram_Init
function Datagram_Init(state, noLan)
Mirror Quake's Datagram_Init routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `Datagram_Init`. |
noLan | dynamic | — | The no lan input consumed by `Datagram_Init`. |
View source
# Datagram_Listen
function Datagram_Listen(state, enabled, port)
Mirror Quake's Datagram_Listen routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `Datagram_Listen`. |
enabled | dynamic | — | Whether the optional behavior is enabled. |
port | dynamic | — | The port input consumed by `Datagram_Listen`. |
View source
# Datagram_SearchForHosts
function Datagram_SearchForHosts(state, xmit, port, timeoutMilliseconds)
Mirror Quake's Datagram_SearchForHosts routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `Datagram_SearchForHosts`. |
xmit | dynamic | — | The xmit input consumed by `Datagram_SearchForHosts`. |
port | dynamic | — | The port input consumed by `Datagram_SearchForHosts`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `Datagram_SearchForHosts`. |
View source
# Datagram_Shutdown
function Datagram_Shutdown(state)
Mirror Quake's Datagram_Shutdown routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `Datagram_Shutdown`. |
View source
# datagramSearchSocket
datagramSearchSocket
Tracks the module-level datagram search socket state owned by `miniquake.net_loop`.
View source
# discoveredAddress
function discoveredAddress(fields, receivedAddress, receivedPort)
Implements the `discoveredAddress` operation for `miniquake.net_loop` (discovered address).
| Parameter | Type | Default | Description |
|---|
fields | dynamic | — | The fields input consumed by `discoveredAddress`. |
receivedAddress | dynamic | — | The received address input consumed by `discoveredAddress`. |
receivedPort | dynamic | — | The received port input consumed by `discoveredAddress`. |
View source
# expandPartialIPAddress
function expandPartialIPAddress(address)
WINS_GetAddrFromName routes digit-leading names through PartialIPAddress. Preserve that user-visible connect syntax in the production UDP path even though the x64 bridge uses sendto rather than the old landriver vtable.
| Parameter | Type | Default | Description |
|---|
address | dynamic | — | Network address of the peer. |
View source
# getMessage
function getMessage(socket, destination)
Return message.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
destination | dynamic | — | Destination value or collection to update. |
View source
# HOST_CACHE_SIZE
const HOST_CACHE_SIZE = 8
Defines the host cache size value used by `miniquake.net_loop`.
View source
# hostNameExists
function hostNameExists(hosts, name)
Apply the Quake-compatible host name exists behavior.
| Parameter | Type | Default | Description |
|---|
hosts | dynamic | — | The hosts input consumed by `hostNameExists`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
View source
# IntAlign
inline function IntAlign(value)
Implements the `IntAlign` operation for `miniquake.net_loop` (int align).
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed by `IntAlign`. |
View source
# ipv4Number
function ipv4Number(address)
Return ipv4 number derived from the active module state.
| Parameter | Type | Default | Description |
|---|
address | dynamic | — | Network address of the peer. |
View source
# ipv4Text
inline function ipv4Text(value)
Implements the `ipv4Text` operation for `miniquake.net_loop` (ipv4 text).
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed by `ipv4Text`. |
View source
# isNumericAddress
function isNumericAddress(address)
Report whether is numeric address.
| Parameter | Type | Default | Description |
|---|
address | dynamic | — | Network address of the peer. |
View source
# listen
function listen(state, port)
Implements the `listen` operation for `miniquake.net_loop` (listen).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `listen`. |
port | dynamic | — | The port input consumed by `listen`. |
View source
# listenerAddress
function listenerAddress(address, port)
Implements the `listenerAddress` operation for `miniquake.net_loop` (listener address).
| Parameter | Type | Default | Description |
|---|
address | dynamic | — | Network address of the peer. |
port | dynamic | — | The port input consumed by `listenerAddress`. |
View source
# Loop_CanSendMessage
function Loop_CanSendMessage(socket)
Mirror Quake's Loop_CanSendMessage routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
View source
# Loop_CanSendUnreliableMessage
function Loop_CanSendUnreliableMessage(socket)
Mirror Quake's Loop_CanSendUnreliableMessage routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
View source
# Loop_CheckNewConnections
function Loop_CheckNewConnections(state)
Mirror Quake's Loop_CheckNewConnections routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `Loop_CheckNewConnections`. |
View source
# Loop_Close
function Loop_Close(socket)
Mirror Quake's Loop_Close routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
View source
# Loop_Connect
function Loop_Connect(state, host)
Mirror Quake's Loop_Connect routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `Loop_Connect`. |
host | dynamic | — | The host input consumed by `Loop_Connect`. |
View source
# Loop_GetMessage
function Loop_GetMessage(socket, destination)
Mirror Quake's Loop_GetMessage routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
destination | dynamic | — | Destination value or collection to update. |
View source
# Loop_Init
function Loop_Init(dedicated)
-------------------------------------------------------------------------- net_loop.c / net_loop.h compatibility surface
| Parameter | Type | Default | Description |
|---|
dedicated | dynamic | — | The dedicated input consumed by `Loop_Init`. |
View source
# Loop_Listen
function Loop_Listen(state)
Mirror Quake's Loop_Listen routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `Loop_Listen`. |
View source
# LOOP_MAX_MESSAGE
const LOOP_MAX_MESSAGE = 8192
Defines the loop max message value used by `miniquake.net_loop`.
View source
# Loop_SearchForHosts
function Loop_SearchForHosts(state, serverActive, driverLevel)
Mirror Quake's Loop_SearchForHosts routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `Loop_SearchForHosts`. |
serverActive | dynamic | — | The server active input consumed by `Loop_SearchForHosts`. |
driverLevel | dynamic | — | The driver level input consumed by `Loop_SearchForHosts`. |
View source
# Loop_SendMessage
function Loop_SendMessage(socket, data)
Mirror Quake's Loop_SendMessage routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
data | dynamic | — | Input data consumed by the operation. |
View source
# Loop_SendUnreliableMessage
function Loop_SendUnreliableMessage(socket, data)
Mirror Quake's Loop_SendUnreliableMessage routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
data | dynamic | — | Input data consumed by the operation. |
View source
# Loop_Shutdown
function Loop_Shutdown()
Mirror Quake's Loop_Shutdown routine and its observable state changes.
View source
# loopQueuedBytes
function loopQueuedBytes(socket)
Return loop queued bytes derived from the active module state.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
View source
# matchingRemote
function matchingRemote(state, address)
Implements the `matchingRemote` operation for `miniquake.net_loop` (matching remote).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `matchingRemote`. |
address | dynamic | — | Network address of the peer. |
View source
# messagesReceived
messagesReceived
Tracks the module-level messages received state owned by `miniquake.net_loop`.
View source
# messagesSent
messagesSent
Tracks the module-level messages sent state owned by `miniquake.net_loop`.
View source
# NET_Ban_f
function NET_Ban_f(state, arguments)
Mirror Quake's NET_Ban_f routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `NET_Ban_f`. |
arguments | dynamic | — | Command-line arguments to inspect or execute. |
View source
# nextServerRule
function nextServerRule(rules, previous)
Return next server rule for the active module state.
| Parameter | Type | Default | Description |
|---|
rules | dynamic | — | The rules input consumed by `nextServerRule`. |
previous | dynamic | — | The previous input consumed by `nextServerRule`. |
View source
# normalizeAddress
function normalizeAddress(address)
Convert address into its canonical representation.
| Parameter | Type | Default | Description |
|---|
address | dynamic | — | Network address of the peer. |
View source
# numericAddressParts
function numericAddressParts(address)
Implements the `numericAddressParts` operation for `miniquake.net_loop` (numeric address parts).
| Parameter | Type | Default | Description |
|---|
address | dynamic | — | Network address of the peer. |
View source
# parseAddress
function parseAddress(text, defaultPort)
Read and validate address.
| Parameter | Type | Default | Description |
|---|
text | dynamic | — | Text to parse or process. |
defaultPort | dynamic | — | The default port input consumed by `parseAddress`. |
View source
# publicListenerAddress
function publicListenerAddress(state)
Implements the `publicListenerAddress` operation for `miniquake.net_loop` (public listener address).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `publicListenerAddress`. |
View source
# pumpListener
function pumpListener(state)
Advance listener by one processing step.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `pumpListener`. |
View source
# pumpRemote
function pumpRemote(socket)
Advance remote by one processing step.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
View source
# resolveDatagramTarget
function resolveDatagramTarget(state, host, defaultPort)
Implements the `resolveDatagramTarget` operation for `miniquake.net_loop` (resolve datagram target).
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `resolveDatagramTarget`. |
host | dynamic | — | The host input consumed by `resolveDatagramTarget`. |
defaultPort | dynamic | — | The default port input consumed by `resolveDatagramTarget`. |
View source
# searchHosts
function searchHosts(port, timeoutMilliseconds)
Implements the `searchHosts` operation for `miniquake.net_loop` (search hosts).
| Parameter | Type | Default | Description |
|---|
port | dynamic | — | The port input consumed by `searchHosts`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `searchHosts`. |
View source
# sendMessage
function sendMessage(socket, buffer)
Send message through the active connection.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
buffer | dynamic | — | The buffer input consumed by `sendMessage`. |
View source
# sendUnreliableMessage
function sendUnreliableMessage(socket, buffer)
Send unreliable message through the active connection.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
buffer | dynamic | — | The buffer input consumed by `sendUnreliableMessage`. |
View source
# shortText
function shortText(text, maximum)
Implements the `shortText` operation for `miniquake.net_loop` (short text).
| Parameter | Type | Default | Description |
|---|
text | dynamic | — | Text to parse or process. |
maximum | dynamic | — | Largest accepted value. |
View source
# stopListening
function stopListening(state)
Finalize state for stop listening.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.net_loop` state used by `stopListening`. |
View source
# StrAddr
function StrAddr(address, port)
Implements the `StrAddr` operation for `miniquake.net_loop` (str addr).
| Parameter | Type | Default | Description |
|---|
address | dynamic | — | Network address of the peer. |
port | dynamic | — | The port input consumed by `StrAddr`. |
View source
# Test2_f
function Test2_f(host, timeoutMilliseconds)
Mirror Quake's Test2_f routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
host | dynamic | — | The host input consumed by `Test2_f`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `Test2_f`. |
View source
# Test2_Poll
function Test2_Poll(socket, expectedAddress, expectedPort, timeoutMilliseconds)
Mirror Quake's Test2_Poll routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
expectedAddress | dynamic | — | The expected address input consumed by `Test2_Poll`. |
expectedPort | dynamic | — | The expected port input consumed by `Test2_Poll`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `Test2_Poll`. |
View source
# Test_f
function Test_f(host, maximumPlayers, timeoutMilliseconds)
Verify f against the expected Quake behavior.
| Parameter | Type | Default | Description |
|---|
host | dynamic | — | The host input consumed by `Test_f`. |
maximumPlayers | dynamic | — | The maximum players input consumed by `Test_f`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `Test_f`. |
View source
# Test_Poll
function Test_Poll(socket, expectedAddress, expectedPort, timeoutMilliseconds)
Verify poll against the expected Quake behavior.
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
expectedAddress | dynamic | — | The expected address input consumed by `Test_Poll`. |
expectedPort | dynamic | — | The expected port input consumed by `Test_Poll`. |
timeoutMilliseconds | dynamic | — | The timeout milliseconds input consumed by `Test_Poll`. |
View source
# timedOut
function timedOut(socket, timeoutSeconds)
Implements the `timedOut` operation for `miniquake.net_loop` (timed out).
| Parameter | Type | Default | Description |
|---|
socket | dynamic | — | Network socket used for communication. |
timeoutSeconds | dynamic | — | The timeout seconds input consumed by `timedOut`. |
View source
# uniqueHostName
function uniqueHostName(hosts, requested)
Return unique host name derived from the active module state.
| Parameter | Type | Default | Description |
|---|
hosts | dynamic | — | The hosts input consumed by `uniqueHostName`. |
requested | dynamic | — | The requested input consumed by `uniqueHostName`. |
View source
# unreliableMessagesReceived
unreliableMessagesReceived
Tracks the module-level unreliable messages received state owned by `miniquake.net_loop`.
View source
# unreliableMessagesSent
unreliableMessagesSent
Tracks the module-level unreliable messages sent state owned by `miniquake.net_loop`.
View source