-
Notifications
You must be signed in to change notification settings - Fork 11
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
net: implement ResolveIPAddr with a stub for lookupProtocol #24
Conversation
Signed-off-by: Christian Stewart <[email protected]>
Okay, after a couple fixes, got it right now 👍🏽 |
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.
Thank you for the PR. Some inline comments...
// See func [Dial] for a description of the network and address | ||
// parameters. | ||
func ResolveIPAddr(network, address string) (*IPAddr, error) { | ||
if network == "" { // a hint wildcard for Go 1.0 undocumented behavior |
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.
We can probably skip everything here except returning the "not implemented" error.
default: | ||
return nil, UnknownNetworkError(network) | ||
} | ||
return nil, errors.New("tcpsock:ResolveIPAddr not implemented") |
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.
s/tcpsock/ipsock
// | ||
// See func [Dial] for a description of the network and address | ||
// parameters. | ||
func ResolveIPAddr(network, address string) (*IPAddr, error) { |
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.
Move this func to iprawsock.go please. I'm trying to keep things aligned with where things are in the upstream src/net repo, for comparison sake.
Hi @paralin, added PR#36 to resolve this PR. PR#36 has the review changes. Mostly just moved changes into proper files to keep synced with Go upstream. |
Ok see #36 then 👍🏽 |
No description provided.