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
Provide IPAddress type #1650
Comments
|
Hi, I would like to work on this issue. I think we want a structure inherent from |
|
I don't think we need to involve |
|
Thanks I will work on it. |
|
I was exploring the codebase, here is my findings :
I want to understand some of the test cases and requirements for this new type NIOIPAddress so that I can work on it as per the unit tests. |
|
Yes, we absolutely want an
I don't think For our test cases, we need to confirm that it can accept the wide range of string formats for IP addresses:
We also need to be able to produce these string representations when requested, as well as have a default implementation of |
|
Thanks a lot @Lukasa ! I understood the scenario. I have good amount of test cases in mind to work in implementation part. |
|
Hey @Lukasa thanks for the good description. As I was working on this I came to the topic of zone/scope-id of the IPv6Address.
As I was reading through this: https://docs.huihoo.com/doxygen/linux/kernel/3.7/uapi_2linux_2in6_8h_source.html I noticed that the zone/scope-id is part of the |
|
Yeah that's a good question. I'm ok with the idea of kicking the scope zone ID to the curb for the |


If you want to work with a complete socket address type including port, we have a helper in
SocketAddress. However, the moment you want to talk only about an IP address we force you to hold anin_addrorin_addr6structure: hardly the friendliest versions of these data types.We should provide a helpful wrapper
IPAddresstype that can be converted into those types as needed. This would be a much friendlier way to work with IP addresses. This is a good issue for those who are familiar with either IP addresses or Swift.The text was updated successfully, but these errors were encountered: