benilla-re systems structs docs

NetClient::ConnectHost

function · net · orchestration

Address
0x5378c0 · 68 bytes, up to 0x537903
Signature
uint32_t __thiscall (NetClient *this, const char *host, uint32_t port)
Meaning
Sets state 5 and asks the connection to dial host and port; returns 1, or 0 after a fatal error when not in state 2
Confidence
verified, proof one
Finding
net/dial#world-dial-states
Test
net::dial_world_connect

Finding: World dial states in net: dial

NetClient::Connect acts only in state 2; in any other it passes the state to SErrDisplayAppFatal ("Expected (m_netState == NS_INITIALIZED), got %d") and dials nothing. The text is the selected realm's 32-byte address field, copied at most 1,023 bytes. It stores state 3, turns the header cipher off (wire, Arming the cipher), stores state 2 again, and 0x5378c0, which needs state 2, enters state 5 and dials with a timeout of -1.

The derivation is in the doc.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.