MakeSockaddrIn
function · os · primitive
- Address
0x43f370· 45 bytes, up to0x43f39c- Signature
void __fastcall (uint32_t address, uint32_t port, void *out)- Meaning
- Writes a 16-byte sockaddr_in: family 2, the port in network order, the address and eight zero bytes
- Confidence
- verified, proof two
- Finding
- net/dial#resolver-piece-limits
- Test
net::dial_resolve_thread
Finding: Resolver piece limits in net: dial
A piece is copied at most 1,023 bytes into a 1,024-byte buffer and is not trimmed. A first byte of 0x80 or more makes a name piece, because the digit compares are signed. In an address piece the text before the : is cut to 31 bytes and the port is the low 16 bits of the number. An entry is 16 bytes: family 2, the port in network order, the address and eight zero bytes. A name not found, or found with an address type other than 2 or a length other than 4, adds nothing and the thread takes the next piece. The pieces' entries share one list, in the order the pieces and their addresses come.
The derivation is in the doc.
Callers 2
- ResolveHostsThread os
- FormatIpPort net
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.