787 bytes added
, 23:26, 30 April 2014
=Request=
{| class="wikitable" border="1"
|-
! 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) <nowiki>|</nowiki> 2
|-
| 4
| Pointer to input hostname buffer
|}
The following is located 0x100-bytes after the beginning of the above command buffer:
{| class="wikitable" border="1"
|-
! Index Word
! Description
|-
| 0
| (outsize<<14) <nowiki>|</nowiki> 2
|-
| 1
| Pointer to output buf
|}
=Response=
{| class="wikitable" border="1"
|-
! 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.