SOCU:gethostbyaddr

Revision as of 14:33, 16 August 2015 by Megazig (talk | contribs)

Request

Index Word Description
0 Header code [0x000E00C2]
1 Input address buffer size.
2 Type (should be AF_INET)
3 Output buffer size, normally 0x1A88-bytes.
4 (insize<<14) | 0x1002
5 Pointer to input address 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.