-
-
Notifications
You must be signed in to change notification settings - Fork 120
Change addresses to net.Addr #46
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
Conversation
pires
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's looking good to me so far.
7faced6 to
d640724
Compare
|
All done! This is ready for another review. |
pires
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM but we're missing changes to README.md to reflect the breaking changes.
Also, I'll need a bit more time to review this properly.
Thank you very much for the work you've put into this 🤩
The motivation is to allow Header to hold Unix socket addresses.
Instead of using an IP and a port, use net.Addr, which allows to
represent any network address.
The Header.{Local,Remote}Addr methods are removed since users can now
just access Header.{Source,Destination}Addr.
New helpers (TCPAddrs, UDPAddrs, UnixAddrs, IPs, Ports) allows users to
easily extract data from the generic net.Addr fields.
Closes: pires#34
Closes: pires#43
Fixed
Sure, take your time :)
Thanks for maintaining this library! |
pires
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
The motivation is to allow Header to hold Unix socket addresses.
Instead of using an IP and a port, use net.Addr, which allows to
represent any network address.
The Header.{Local,Remote}Addr methods are removed since users can now
just access Header.{Source,Destination}Addr.
New helpers (TCPAddrs, UDPAddrs, UnixAddrs, IPs, Ports) allows users to
easily extract data from the generic net.Addr fields.
Closes: #34
Closes: #43
Tests haven't been updated yet, but I'd like to gather some feedback because this is a quite radical change. What do you think?