SOCU:getsockname

From 3dbrew
Revision as of 06:36, 28 April 2014 by Yellows8 (talk | contribs) (Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00170082] |- | 1 | Socket descriptor |- | 2 | Max addrlen (the output addrlen mu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Request[edit]

Index Word Description
0 Header code [0x00170082]
1 Socket descriptor
2 Max addrlen (the output addrlen must be determined by the user process)
3 Value 0x20 (processID header)
4 ProcessID set by the ARM11 kernel.

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

Index Word Description
0 (max_addrlen<<14) | 2
1 Pointer to the output struct sockaddr buffer.

Response[edit]

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