Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getaddrinfo and freeaddrinfo #9

Open
andrewthad opened this issue Mar 5, 2019 · 0 comments
Open

Add getaddrinfo and freeaddrinfo #9

andrewthad opened this issue Mar 5, 2019 · 0 comments

Comments

@andrewthad
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant