SOCU:getsockopt

Revision as of 04:06, 28 April 2014 by Yellows8 (talk | contribs) (Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00110102] |- | 1 | Socket descriptor |- | 2 | int level (SOL_SOCKET=0xffff) |- |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RequestEdit

Index Word Description
0 Header code [0x00110102]
1 Socket descriptor
2 int level (SOL_SOCKET=0xffff)
3 int optname
4 socklen_t optlen
5 Value 0x20 (processID header)
6 ProcessID set by the ARM11 kernel.

The following is located 0x100-bytes after the beginning of the above command buffer:

Index Word Description
0 (optlen<<14) | 2
1 Pointer to the output optval buffer.

ResponseEdit

Index Word Description
0 Header code
1 Result code
2 POSIX return value
3 Output optlen