SOCU:recvfrom

SOCU:recvfrom

Request #

Index WordDescription
0Header code [0x00080102]
1Socket descriptor
2size_t len
3int flags
4socklen_t addrlen
5Value 0x20 (processID header)
6ProcessID set by the ARM11 kernel.

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

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

Response #

Index WordDescription
0Header code
1Result code
2POSIX return value
3Total received data, from the above return-value when no error was returned.

Description #

This receives data from the socket. The max length for the len field is 0x2000, the socket module will use length 0x2000 when this field is >0x2000.