# AF_INET
const AF_INET = 2Defines the af inet value used by `miniquake.net_wins`.
src/miniquake/net_wins.mlminiquake/common.ml as common → src/miniquake/common.mlminiquake/net_udp.ml as udp → src/miniquake/net_udp.mlminiquake/platform/win32.ml as win → src/miniquake/platform/win32.mlminiquake/types.ml as t → src/miniquake/types.mlconst AF_INET = 2Defines the af inet value used by `miniquake.net_wins`.
function BlockingHook()Implements the `BlockingHook` operation for `miniquake.net_wins` (blocking hook).
blocktimeTracks the module-level blocktime state owned by `miniquake.net_wins`.
broadcastaddrTracks the module-level broadcastaddr state owned by `miniquake.net_wins`.
configuredHostnameTracks the module-level configured hostname state owned by `miniquake.net_wins`.
function htonl(value)Implements the `htonl` operation for `miniquake.net_wins` (htonl).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `htonl`. |
function htons(value)Implements the `htons` operation for `miniquake.net_wins` (htons).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `htons`. |
function ipv4Text(hostOrderAddress)Implements the `ipv4Text` operation for `miniquake.net_wins` (ipv4 text).
| Parameter | Type | Default | Description |
|---|---|---|---|
hostOrderAddress | dynamic | — | The host order address input consumed by `ipv4Text`. |
lastErrorTracks the module-level last error state owned by `miniquake.net_wins`.
const MAXHOSTNAMELEN = 256Defines the maxhostnamelen value used by `miniquake.net_wins`.
my_tcpip_addressTracks the module-level my tcpip address state owned by `miniquake.net_wins`.
myAddrTracks the module-level my addr state owned by `miniquake.net_wins`.
net_acceptsocketTracks the module-level net acceptsocket state owned by `miniquake.net_wins`.
net_broadcastsocketTracks the module-level net broadcastsocket state owned by `miniquake.net_wins`.
net_controlsocketTracks the module-level net controlsocket state owned by `miniquake.net_wins`.
net_hostportTracks the module-level net hostport state owned by `miniquake.net_wins`.
const NET_NAMELEN = 64Defines the net namelen value used by `miniquake.net_wins`.
function newAddress(addressText, port)Create and initialize address.
| Parameter | Type | Default | Description |
|---|---|---|---|
addressText | dynamic | — | The address text input consumed by `newAddress`. |
port | dynamic | — | The port input consumed by `newAddress`. |
function ntohl(value)Implements the `ntohl` operation for `miniquake.net_wins` (ntohl).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `ntohl`. |
function ntohs(value)Implements the `ntohs` operation for `miniquake.net_wins` (ntohs).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `ntohs`. |
function numericHostName(text)Return numeric host name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
function parseDecimal(text, maximumDigits, maximumValue)Read and validate decimal.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
maximumDigits | dynamic | — | The maximum digits input consumed by `parseDecimal`. |
maximumValue | dynamic | — | The maximum value input consumed by `parseDecimal`. |
function parseIpv4(text)Read and validate ipv4.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
function PartialIPAddress(input, hostaddr)Implements the `PartialIPAddress` operation for `miniquake.net_wins` (partial ip address).
| Parameter | Type | Default | Description |
|---|---|---|---|
input | dynamic | — | The input input consumed by `PartialIPAddress`. |
hostaddr | dynamic | — | The hostaddr input consumed by `PartialIPAddress`. |
function setAddress(target, source)Update module state for address.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | dynamic | — | The target input consumed by `setAddress`. |
source | dynamic | — | Source value or collection to read. |
function shortHostName(text)Return short host name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
function shortText(text, maximum)Implements the `shortText` operation for `miniquake.net_wins` (short text).
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
maximum | dynamic | — | Largest accepted value. |
function splitText(text, separator)Convert text into its canonical representation.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
separator | dynamic | — | The separator input consumed by `splitText`. |
tcpipAvailableTracks the module-level tcpip available state owned by `miniquake.net_wins`.
function WINS_AddrCompare(addr1, addr2)Mirror Quake's WINS_AddrCompare routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
addr1 | dynamic | — | The addr1 input consumed by `WINS_AddrCompare`. |
addr2 | dynamic | — | The addr2 input consumed by `WINS_AddrCompare`. |
function WINS_AddrToString(addr)Mirror Quake's WINS_AddrToString routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
addr | dynamic | — | The addr input consumed by `WINS_AddrToString`. |
function WINS_Broadcast(socketValue, buffer, length)Mirror Quake's WINS_Broadcast routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
socketValue | dynamic | — | The socket value input consumed by `WINS_Broadcast`. |
buffer | dynamic | — | The buffer input consumed by `WINS_Broadcast`. |
length | dynamic | — | Length of the requested data in units appropriate to the operation. |
function WINS_CheckNewConnections()Mirror Quake's WINS_CheckNewConnections routine and its observable state changes.
function WINS_CloseSocket(socketValue)Mirror Quake's WINS_CloseSocket routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
socketValue | dynamic | — | The socket value input consumed by `WINS_CloseSocket`. |
function WINS_Connect(socketValue, addr)Mirror Quake's WINS_Connect routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
socketValue | dynamic | — | The socket value input consumed by `WINS_Connect`. |
addr | dynamic | — | The addr input consumed by `WINS_Connect`. |
function WINS_GetAddrFromName(name, addr)Mirror Quake's WINS_GetAddrFromName routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
addr | dynamic | — | The addr input consumed by `WINS_GetAddrFromName`. |
function WINS_GetLocalAddress()Mirror Quake's WINS_GetLocalAddress routine and its observable state changes.
function WINS_GetNameFromAddr(addr)Mirror Quake's WINS_GetNameFromAddr routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
addr | dynamic | — | The addr input consumed by `WINS_GetNameFromAddr`. |
function WINS_GetSocketAddr(socketValue, addr)Mirror Quake's WINS_GetSocketAddr routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
socketValue | dynamic | — | The socket value input consumed by `WINS_GetSocketAddr`. |
addr | dynamic | — | The addr input consumed by `WINS_GetSocketAddr`. |
function WINS_GetSocketPort(addr)Mirror Quake's WINS_GetSocketPort routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
addr | dynamic | — | The addr input consumed by `WINS_GetSocketPort`. |
function WINS_Init(hostName, noUdp, configuredIp, hostPort)Mirror Quake's WINS_Init routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
hostName | dynamic | — | Name that identifies the requested value or resource. |
noUdp | dynamic | — | The no udp input consumed by `WINS_Init`. |
configuredIp | dynamic | — | The configured ip input consumed by `WINS_Init`. |
hostPort | dynamic | — | The host port input consumed by `WINS_Init`. |
function WINS_Listen(state)Mirror Quake's WINS_Listen routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.net_wins` state used by `WINS_Listen`. |
function WINS_MakeSocketBroadcastCapable(socketValue)Mirror Quake's WINS_MakeSocketBroadcastCapable routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
socketValue | dynamic | — | The socket value input consumed by `WINS_MakeSocketBroadcastCapable`. |
function WINS_OpenSocket(port)Mirror Quake's WINS_OpenSocket routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
port | dynamic | — | The port input consumed by `WINS_OpenSocket`. |
function WINS_Read(socketValue, buffer, length, addr)Mirror Quake's WINS_Read routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
socketValue | dynamic | — | The socket value input consumed by `WINS_Read`. |
buffer | dynamic | — | The buffer input consumed by `WINS_Read`. |
length | dynamic | — | Length of the requested data in units appropriate to the operation. |
addr | dynamic | — | The addr input consumed by `WINS_Read`. |
function WINS_ResetState()Mirror Quake's WINS_ResetState routine and its observable state changes.
function WINS_SetAcceptSocket(socketValue)Mirror Quake's WINS_SetAcceptSocket routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
socketValue | dynamic | — | The socket value input consumed by `WINS_SetAcceptSocket`. |
function WINS_SetBlockTime(value)Mirror Quake's WINS_SetBlockTime routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `WINS_SetBlockTime`. |
function WINS_SetBroadcastSocket(socketValue)Mirror Quake's WINS_SetBroadcastSocket routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
socketValue | dynamic | — | The socket value input consumed by `WINS_SetBroadcastSocket`. |
function WINS_SetLocalAddress(addressText)Mirror Quake's WINS_SetLocalAddress routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
addressText | dynamic | — | The address text input consumed by `WINS_SetLocalAddress`. |
function WINS_SetSocketPort(addr, port)Mirror Quake's WINS_SetSocketPort routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
addr | dynamic | — | The addr input consumed by `WINS_SetSocketPort`. |
port | dynamic | — | The port input consumed by `WINS_SetSocketPort`. |
function WINS_Shutdown()Mirror Quake's WINS_Shutdown routine and its observable state changes.
function WINS_StateSnapshot()Mirror Quake's WINS_StateSnapshot routine and its observable state changes.
function WINS_StringToAddr(text, addr)Mirror Quake's WINS_StringToAddr routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
addr | dynamic | — | The addr input consumed by `WINS_StringToAddr`. |
function WINS_Write(socketValue, buffer, length, addr)Mirror Quake's WINS_Write routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
socketValue | dynamic | — | The socket value input consumed by `WINS_Write`. |
buffer | dynamic | — | The buffer input consumed by `WINS_Write`. |
length | dynamic | — | Length of the requested data in units appropriate to the operation. |
addr | dynamic | — | The addr input consumed by `WINS_Write`. |
winsock_initializedTracks the module-level winsock initialized state owned by `miniquake.net_wins`.
winsock_lib_initializedTracks the module-level winsock lib initialized state owned by `miniquake.net_wins`.