SOCU:recvfrom Other

SOCU:recvfrom Other

Request #

Index WordDescription
0Header code [0x00070104]
1Socket descriptor
2size_t len
3int flags
4socklen_t addrlen
5Value 0x20 (processID header)
6ProcessID set by the ARM11 kernel.
7(len<<4) | 12
8Pointer to output buf

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

Index WordDescription
0(addrlen<<14) | 2
1Pointer to the output src_addr structure (must be a valid address, even when unused)

Response #

Index WordDescription
0Header code
1Result code
2POSIX return value

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 also doesn’t have the extra “total received data” field in the response which recvfrom has.