fd_count: u_int;
fd_array: array [0..FD_SETSIZE - 1] of TSocket;
tv_sec: Longint;
tv_usec: Longint;
h_name: PAnsiChar;
h_aliases: PPAnsiChar;
h_addrtype: SmallInt;
h_length: SmallInt;
h_addr_list: PPAnsiChar;
The 64-bit layout swaps the last two fields; both are declared as the platform requires, so s_port reads correctly either way.
s_name: PAnsiChar;
s_aliases: PPAnsiChar;
s_proto: PAnsiChar;
s_port: SmallInt;
s_port: SmallInt;
s_proto: PAnsiChar;
(no public members)
(no public members)
sa_family: u_short;
sa_data: array [0..13] of AnsiChar;
Either family in one record - see the note at the top of the unit.
sin_addr: TInAddr;
sin_zero: array [0..7] of u_char);
sin6_flowinfo: u_long;
sin6_addr: TInAddr6;
sin6_scope_id: u_long);
sin6_family: u_short;
sin6_port: u_short;
sin6_flowinfo: u_long;
sin6_addr: TInAddr6;
sin6_scope_id: u_long;
128 bytes, aligned for the widest family: the buffer to receive into when the address family is not known in advance.
ss_family: u_short;
__ss_pad1: array [0..5] of AnsiChar;
__ss_align: Int64;
__ss_pad2: array [0..111] of AnsiChar;
l_onoff: u_short;
l_linger: u_short;
fd: TSocket;
events: SmallInt;
revents: SmallInt;
The 64-bit layout puts the counts and the vendor pointer before the two strings; both are declared as the platform requires.
wVersion: Word;
wHighVersion: Word;
iMaxSockets: Word;
iMaxUdpDg: Word;
lpVendorInfo: PAnsiChar;
szDescription: array [0..WSADESCRIPTION_LEN] of AnsiChar;
szSystemStatus: array [0..WSASYS_STATUS_LEN] of AnsiChar;
szDescription: array [0..WSADESCRIPTION_LEN] of AnsiChar;
szSystemStatus: array [0..WSASYS_STATUS_LEN] of AnsiChar;
iMaxSockets: Word;
iMaxUdpDg: Word;
lpVendorInfo: PAnsiChar;
len: u_long;
buf: PAnsiChar;
name: PSockAddr;
namelen: Integer;
lpBuffers: LPWSABUF;
dwBufferCount: DWORD;
Control: WSABUF;
dwFlags: DWORD;
cmsg_len: NativeUInt;
cmsg_level, cmsg_type: Integer;
ChainLen: Integer;
ChainEntries: array [0..MAX_PROTOCOL_CHAIN - 1] of DWORD;
dwServiceFlags1: DWORD;
dwServiceFlags2: DWORD;
dwServiceFlags3: DWORD;
dwServiceFlags4: DWORD;
dwProviderFlags: DWORD;
ProviderId: TGUID;
dwCatalogEntryId: DWORD;
ProtocolChain: WSAPROTOCOLCHAIN;
iVersion: Integer;
iAddressFamily: Integer;
iMaxSockAddr: Integer;
iMinSockAddr: Integer;
iSocketType: Integer;
iProtocol: Integer;
iProtocolMaxOffset: Integer;
iNetworkByteOrder: Integer;
iSecurityScheme: Integer;
dwMessageSize: DWORD;
dwProviderReserved: DWORD;
szProtocol: array [0..WSAPROTOCOL_LEN] of AnsiChar;
dwServiceFlags1: DWORD;
dwServiceFlags2: DWORD;
dwServiceFlags3: DWORD;
dwServiceFlags4: DWORD;
dwProviderFlags: DWORD;
ProviderId: TGUID;
dwCatalogEntryId: DWORD;
ProtocolChain: WSAPROTOCOLCHAIN;
iVersion: Integer;
iAddressFamily: Integer;
iMaxSockAddr: Integer;
iMinSockAddr: Integer;
iSocketType: Integer;
iProtocol: Integer;
iProtocolMaxOffset: Integer;
iNetworkByteOrder: Integer;
iSecurityScheme: Integer;
dwMessageSize: DWORD;
dwProviderReserved: DWORD;
szProtocol: array [0..WSAPROTOCOL_LEN] of WideChar;
ai_addrlen is a size_t: 8 bytes in a 64-bit process.
ai_flags: Integer;
ai_family: Integer;
ai_socktype: Integer;
ai_protocol: Integer;
ai_addrlen: size_t;
ai_canonname: PAnsiChar;
ai_addr: PSockAddr;
ai_next: PAddrInfo;
Layout-identical to OVERLAPPED, and a completion port hands back that same pointer, so this is an alias rather than a second declaration.