Difference between revisions of "SOCU:gethostbyname"

From 3dbrew
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...")
 
Line 15: Line 15:
 
|-
 
|-
 
| 3
 
| 3
| (insize<<14)  <nowiki>|</nowiki> 2
+
| (insize<<14)  <nowiki>|</nowiki> 0xC02
 
|-
 
|-
 
| 4
 
| 4

Revision as of 04:22, 20 August 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) | 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.