Difference between revisions of "SOCU:gethostbyname"
Jump to navigation
Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x000D0082] |- | 1 | Input hostname buffer size, including null-terminator. |- | 2...") |
(No difference)
|
Revision as of 23:26, 30 April 2014
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) | 2 |
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.