Difference between revisions of "SOCU:recvfrom other"
Jump to navigation
Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00070104] |- | 1 | Socket descriptor |- | 2 | size_t len |- | 3 | int flags |- |...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 56: | Line 56: | ||
|- | |- | ||
| 1 | | 1 | ||
− | | Result code | + | | Result code |
|- | |- | ||
| 2 | | 2 | ||
− | | | + | | POSIX return value |
− | |||
− | |||
− | |||
|} | |} | ||
=Description= | =Description= | ||
− | This is the same as [[SOCU:recvfrom]], except this doesn't have the size restriction, and this uses the "(outsize<<4) | 12" header instead of the "| 2" header. | + | This is the same as [[SOCU:recvfrom]], except this doesn't have the size restriction, and this uses the "(outsize<<4) | 12" header instead of the "| 2" header. This also doesn't have the extra "total received data" field in the response which recvfrom has. |
Latest revision as of 21:21, 13 July 2013
Request[edit]
Index Word | Description |
---|---|
0 | Header code [0x00070104] |
1 | Socket descriptor |
2 | size_t len |
3 | int flags |
4 | socklen_t addrlen |
5 | Value 0x20 (processID header) |
6 | ProcessID set by the ARM11 kernel. |
7 | (len<<4) | 12 |
8 | Pointer to output buf |
The following is located 0x100-bytes after the beginning of the above command buffer:
Index Word | Description |
---|---|
0 | (addrlen<<14) | 2 |
1 | Pointer to the output src_addr structure (must be a valid address, even when unused) |
Response[edit]
Index Word | Description |
---|---|
0 | Header code |
1 | Result code |
2 | POSIX return value |
Description[edit]
This is the same as SOCU:recvfrom, except this doesn't have the size restriction, and this uses the "(outsize<<4) | 12" header instead of the "| 2" header. This also doesn't have the extra "total received data" field in the response which recvfrom has.