The will be needed to get hostname resolution working in the sockets library. These functions call further into question the current way that struct sockaddr is handled in posix-api. Consider that struct addrinfo is defined as:
struct addrinfo {
int ai_flags;
int ai_family;
int ai_socktype;
int ai_protocol;
socklen_t ai_addrlen;
struct sockaddr *ai_addr;
char *ai_canonname;
struct addrinfo *ai_next;
};
The current SocketAddress approach does not work at all with the sockaddr-in-a-struct that we see here and in things like recvmmsg.
The will be needed to get hostname resolution working in the
socketslibrary. These functions call further into question the current way thatstruct sockaddris handled inposix-api. Consider thatstruct addrinfois defined as:The current
SocketAddressapproach does not work at all with thesockaddr-in-a-struct that we see here and in things likerecvmmsg.