MiniQuake

src/miniquake/net_wins.ml

Package
miniquake.net_wins
Reachable
Yes

Imports

Declarations

AF_INET

const AF_INET = 2

Defines the af inet value used by `miniquake.net_wins`.

View source

BlockingHook

function BlockingHook()

Implements the `BlockingHook` operation for `miniquake.net_wins` (blocking hook).

View source

blocktime

blocktime

Tracks the module-level blocktime state owned by `miniquake.net_wins`.

View source

broadcastaddr

broadcastaddr

Tracks the module-level broadcastaddr state owned by `miniquake.net_wins`.

View source

configuredHostname

configuredHostname

Tracks the module-level configured hostname state owned by `miniquake.net_wins`.

View source

htonl

function htonl(value)

Implements the `htonl` operation for `miniquake.net_wins` (htonl).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `htonl`.

View source

htons

function htons(value)

Implements the `htons` operation for `miniquake.net_wins` (htons).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `htons`.

View source

ipv4Text

function ipv4Text(hostOrderAddress)

Implements the `ipv4Text` operation for `miniquake.net_wins` (ipv4 text).

ParameterTypeDefaultDescription
hostOrderAddressdynamic—The host order address input consumed by `ipv4Text`.

View source

lastError

lastError

Tracks the module-level last error state owned by `miniquake.net_wins`.

View source

MAXHOSTNAMELEN

const MAXHOSTNAMELEN = 256

Defines the maxhostnamelen value used by `miniquake.net_wins`.

View source

my_tcpip_address

my_tcpip_address

Tracks the module-level my tcpip address state owned by `miniquake.net_wins`.

View source

myAddr

myAddr

Tracks the module-level my addr state owned by `miniquake.net_wins`.

View source

net_acceptsocket

net_acceptsocket

Tracks the module-level net acceptsocket state owned by `miniquake.net_wins`.

View source

net_broadcastsocket

net_broadcastsocket

Tracks the module-level net broadcastsocket state owned by `miniquake.net_wins`.

View source

net_controlsocket

net_controlsocket

Tracks the module-level net controlsocket state owned by `miniquake.net_wins`.

View source

net_hostport

net_hostport

Tracks the module-level net hostport state owned by `miniquake.net_wins`.

View source

NET_NAMELEN

const NET_NAMELEN = 64

Defines the net namelen value used by `miniquake.net_wins`.

View source

newAddress

function newAddress(addressText, port)

Create and initialize address.

ParameterTypeDefaultDescription
addressTextdynamic—The address text input consumed by `newAddress`.
portdynamic—The port input consumed by `newAddress`.

View source

ntohl

function ntohl(value)

Implements the `ntohl` operation for `miniquake.net_wins` (ntohl).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `ntohl`.

View source

ntohs

function ntohs(value)

Implements the `ntohs` operation for `miniquake.net_wins` (ntohs).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `ntohs`.

View source

numericHostName

function numericHostName(text)

Return numeric host name derived from the active module state.

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.

View source

parseDecimal

function parseDecimal(text, maximumDigits, maximumValue)

Read and validate decimal.

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.
maximumDigitsdynamic—The maximum digits input consumed by `parseDecimal`.
maximumValuedynamic—The maximum value input consumed by `parseDecimal`.

View source

parseIpv4

function parseIpv4(text)

Read and validate ipv4.

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.

View source

PartialIPAddress

function PartialIPAddress(input, hostaddr)

Implements the `PartialIPAddress` operation for `miniquake.net_wins` (partial ip address).

ParameterTypeDefaultDescription
inputdynamic—The input input consumed by `PartialIPAddress`.
hostaddrdynamic—The hostaddr input consumed by `PartialIPAddress`.

View source

setAddress

function setAddress(target, source)

Update module state for address.

ParameterTypeDefaultDescription
targetdynamic—The target input consumed by `setAddress`.
sourcedynamic—Source value or collection to read.

View source

shortHostName

function shortHostName(text)

Return short host name derived from the active module state.

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.

View source

shortText

function shortText(text, maximum)

Implements the `shortText` operation for `miniquake.net_wins` (short text).

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.
maximumdynamic—Largest accepted value.

View source

splitText

function splitText(text, separator)

Convert text into its canonical representation.

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.
separatordynamic—The separator input consumed by `splitText`.

View source

tcpipAvailable

tcpipAvailable

Tracks the module-level tcpip available state owned by `miniquake.net_wins`.

View source

WINS_AddrCompare

function WINS_AddrCompare(addr1, addr2)

Mirror Quake's WINS_AddrCompare routine and its observable state changes.

ParameterTypeDefaultDescription
addr1dynamic—The addr1 input consumed by `WINS_AddrCompare`.
addr2dynamic—The addr2 input consumed by `WINS_AddrCompare`.

View source

WINS_AddrToString

function WINS_AddrToString(addr)

Mirror Quake's WINS_AddrToString routine and its observable state changes.

ParameterTypeDefaultDescription
addrdynamic—The addr input consumed by `WINS_AddrToString`.

View source

WINS_Broadcast

function WINS_Broadcast(socketValue, buffer, length)

Mirror Quake's WINS_Broadcast routine and its observable state changes.

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `WINS_Broadcast`.
bufferdynamic—The buffer input consumed by `WINS_Broadcast`.
lengthdynamic—Length of the requested data in units appropriate to the operation.

View source

WINS_CheckNewConnections

function WINS_CheckNewConnections()

Mirror Quake's WINS_CheckNewConnections routine and its observable state changes.

View source

WINS_CloseSocket

function WINS_CloseSocket(socketValue)

Mirror Quake's WINS_CloseSocket routine and its observable state changes.

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `WINS_CloseSocket`.

View source

WINS_Connect

function WINS_Connect(socketValue, addr)

Mirror Quake's WINS_Connect routine and its observable state changes.

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `WINS_Connect`.
addrdynamic—The addr input consumed by `WINS_Connect`.

View source

WINS_GetAddrFromName

function WINS_GetAddrFromName(name, addr)

Mirror Quake's WINS_GetAddrFromName routine and its observable state changes.

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.
addrdynamic—The addr input consumed by `WINS_GetAddrFromName`.

View source

WINS_GetLocalAddress

function WINS_GetLocalAddress()

Mirror Quake's WINS_GetLocalAddress routine and its observable state changes.

View source

WINS_GetNameFromAddr

function WINS_GetNameFromAddr(addr)

Mirror Quake's WINS_GetNameFromAddr routine and its observable state changes.

ParameterTypeDefaultDescription
addrdynamic—The addr input consumed by `WINS_GetNameFromAddr`.

View source

WINS_GetSocketAddr

function WINS_GetSocketAddr(socketValue, addr)

Mirror Quake's WINS_GetSocketAddr routine and its observable state changes.

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `WINS_GetSocketAddr`.
addrdynamic—The addr input consumed by `WINS_GetSocketAddr`.

View source

WINS_GetSocketPort

function WINS_GetSocketPort(addr)

Mirror Quake's WINS_GetSocketPort routine and its observable state changes.

ParameterTypeDefaultDescription
addrdynamic—The addr input consumed by `WINS_GetSocketPort`.

View source

WINS_Init

function WINS_Init(hostName, noUdp, configuredIp, hostPort)

Mirror Quake's WINS_Init routine and its observable state changes.

ParameterTypeDefaultDescription
hostNamedynamic—Name that identifies the requested value or resource.
noUdpdynamic—The no udp input consumed by `WINS_Init`.
configuredIpdynamic—The configured ip input consumed by `WINS_Init`.
hostPortdynamic—The host port input consumed by `WINS_Init`.

View source

WINS_Listen

function WINS_Listen(state)

Mirror Quake's WINS_Listen routine and its observable state changes.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.net_wins` state used by `WINS_Listen`.

View source

WINS_MakeSocketBroadcastCapable

function WINS_MakeSocketBroadcastCapable(socketValue)

Mirror Quake's WINS_MakeSocketBroadcastCapable routine and its observable state changes.

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `WINS_MakeSocketBroadcastCapable`.

View source

WINS_OpenSocket

function WINS_OpenSocket(port)

Mirror Quake's WINS_OpenSocket routine and its observable state changes.

ParameterTypeDefaultDescription
portdynamic—The port input consumed by `WINS_OpenSocket`.

View source

WINS_Read

function WINS_Read(socketValue, buffer, length, addr)

Mirror Quake's WINS_Read routine and its observable state changes.

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `WINS_Read`.
bufferdynamic—The buffer input consumed by `WINS_Read`.
lengthdynamic—Length of the requested data in units appropriate to the operation.
addrdynamic—The addr input consumed by `WINS_Read`.

View source

WINS_ResetState

function WINS_ResetState()

Mirror Quake's WINS_ResetState routine and its observable state changes.

View source

WINS_SetAcceptSocket

function WINS_SetAcceptSocket(socketValue)

Mirror Quake's WINS_SetAcceptSocket routine and its observable state changes.

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `WINS_SetAcceptSocket`.

View source

WINS_SetBlockTime

function WINS_SetBlockTime(value)

Mirror Quake's WINS_SetBlockTime routine and its observable state changes.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `WINS_SetBlockTime`.

View source

WINS_SetBroadcastSocket

function WINS_SetBroadcastSocket(socketValue)

Mirror Quake's WINS_SetBroadcastSocket routine and its observable state changes.

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `WINS_SetBroadcastSocket`.

View source

WINS_SetLocalAddress

function WINS_SetLocalAddress(addressText)

Mirror Quake's WINS_SetLocalAddress routine and its observable state changes.

ParameterTypeDefaultDescription
addressTextdynamic—The address text input consumed by `WINS_SetLocalAddress`.

View source

WINS_SetSocketPort

function WINS_SetSocketPort(addr, port)

Mirror Quake's WINS_SetSocketPort routine and its observable state changes.

ParameterTypeDefaultDescription
addrdynamic—The addr input consumed by `WINS_SetSocketPort`.
portdynamic—The port input consumed by `WINS_SetSocketPort`.

View source

WINS_Shutdown

function WINS_Shutdown()

Mirror Quake's WINS_Shutdown routine and its observable state changes.

View source

WINS_StateSnapshot

function WINS_StateSnapshot()

Mirror Quake's WINS_StateSnapshot routine and its observable state changes.

View source

WINS_StringToAddr

function WINS_StringToAddr(text, addr)

Mirror Quake's WINS_StringToAddr routine and its observable state changes.

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.
addrdynamic—The addr input consumed by `WINS_StringToAddr`.

View source

WINS_Write

function WINS_Write(socketValue, buffer, length, addr)

Mirror Quake's WINS_Write routine and its observable state changes.

ParameterTypeDefaultDescription
socketValuedynamic—The socket value input consumed by `WINS_Write`.
bufferdynamic—The buffer input consumed by `WINS_Write`.
lengthdynamic—Length of the requested data in units appropriate to the operation.
addrdynamic—The addr input consumed by `WINS_Write`.

View source

winsock_initialized

winsock_initialized

Tracks the module-level winsock initialized state owned by `miniquake.net_wins`.

View source

winsock_lib_initialized

winsock_lib_initialized

Tracks the module-level winsock lib initialized state owned by `miniquake.net_wins`.

View source