SOCU:getnameinfo

SOCU:getnameinfo

int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)

Request #

Index WordDescription
0Header code [0x00100102]
1value 0x1C // size of sockaddr_in6
2socklen_t hostlen
3socklen_t servlen
4int flags
50x1C <<14 | 8 << 10 | 2 // IPC_Desc_StaticBuffer(0x1C,8);
6const struct sockaddr *sa

Thread Static Buffers #

Index WordDescription
0hostlen<<14 // IPC_Desc_StaticBuffer(hostlen,0);
1host
2servlen<<14 // IPC_Desc_StaticBuffer(servlen,0);
3serv

Response #

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

Notes : some of the 0x1C values could possibly be replaced by salen, but the module seems to accept only 0x1C.