SOCU:gethostbyname

From 3dbrew
Revision as of 23:26, 30 April 2014 by Yellows8 (talk | contribs) (Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x000D0082] |- | 1 | Input hostname buffer size, including null-terminator. |- | 2...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.