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

client/c: Add IPv6 support #13

Merged
merged 1 commit into from
Apr 8, 2020
Merged

Conversation

ac000
Copy link
Contributor

@ac000 ac000 commented Apr 8, 2020

Hi,

This adds IPv6 support to the C client.

Cheers,
Andrew

This adds IPv6 support to the C client. It makes use of getaddrinfo(3).
This also allows to use hostnames instead of IP addresses.

We drop the call to bind(2) and just let the kernel handle it.

We store the port and server IP address as const char *'s in the config
structure so these can just be passed directly to getaddrinfo() and the
tests were updated to reflect that.
@TimeToogo TimeToogo merged commit ab9fa37 into TimeToogo:master Apr 8, 2020
@TimeToogo
Copy link
Owner

Thanks!

@ac000 ac000 deleted the client-ipv6 branch April 14, 2020 23:50
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

Successfully merging this pull request may close these issues.

2 participants