SOCU:gethostbyname

Revision as of 04:22, 20 August 2014 by Yellows8 (talk | contribs)

Request

Index Word Description
0 Header code [0x000D0082]
1 Input hostname buffer size, including null-terminator.
2 Output buffer size, normally 0x1A88-bytes.
3 (insize<<14) | 0xC02
4 Pointer to input hostname buffer

The following is located 0x100-bytes after the beginning of the above command buffer:

Index Word Description
0 (outsize<<14) | 2
1 Pointer to output buf

Response

Index Word Description
0 Header code
1 Result code
2 POSIX return value

Description

It's currently unknown how the output buffer is converted into a hostent struct.