SOCU:getpeername

SOCU:getpeername

Request #

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

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

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

Response #

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