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

IPV6 support for all network functions #18

Closed
orthecreedence opened this issue Oct 10, 2012 · 3 comments
Closed

IPV6 support for all network functions #18

orthecreedence opened this issue Oct 10, 2012 · 3 comments

Comments

@orthecreedence
Copy link
Owner

For tcp-send and http-client, you can specify an IPV4 address or a hostname, but if you pass an IPV6 address, it will work, but only by doing an unnecessary DNS lookup. For tcp-server or http-server, passing an IPV6 address will break.

Also need to add IPV6 support to dns-lookup, which only supports IPV4 lookups for now.

Need to wrap the IPV6 address classes in the bindings and update the internal ip-address-p to return whether we're looking at IPV4 or IPV6 and create the appropriate c struct to pass into the connect function.

@orthecreedence
Copy link
Owner Author

Working on this now...

@orthecreedence
Copy link
Owner Author

Ok finished. Added IPV6 support to tcp-send and tcp-server. The http-* functions had it built in.

Also added IPV6 to dns-lookup. Added new :family keyword in dns-lookup, which can be used to specify the type of address you want.

@orthecreedence
Copy link
Owner Author

Also, exporting +af-inet+, +af-inet6+, +af-unspec+, +af-unix+ (unused for now)

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

No branches or pull requests

1 participant