Changes

765 bytes added ,  18:24, 1 May 2014
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x001A00C0] |- | 1 | int level (Normally 0xfffe) |- | 2 | int optname |- | 3 | soc..."
=Request=
{| class="wikitable" border="1"
|-
! Index Word
! Description
|-
| 0
| Header code [0x001A00C0]
|-
| 1
| int level (Normally 0xfffe)
|-
| 2
| int optname
|-
| 3
| socklen_t optlen
|}

The following is located 0x100-bytes after the beginning of the above command buffer:
{| class="wikitable" border="1"
|-
! Index Word
! Description
|-
| 0
| (optlen<<14) <nowiki>|</nowiki> 2
|-
| 1
| Pointer to the output optval buffer.
|}

=Response=
{| class="wikitable" border="1"
|-
! Index Word
! Description
|-
| 0
| Header code
|-
| 1
| Result code
|-
| 2
| POSIX return value
|-
| 3
| Output optlen
|}

=Description=
This seems to be similar to Wii [http://wiibrew.org/wiki/Socket sockets] GetInterfaceOpt?(same optnames / optvals, for optname 0x4003, etc)