-
Notifications
You must be signed in to change notification settings - Fork 18k
net: Dial("ip", ...) fails on Windows with "ConnectEx ip4: An invalid argument was specified" #6122
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
Labels
Milestone
Comments
Just sent: https://golang.org/cl/12843043/ |
I believe we will have to use connect, since ConnectEx is only supported on connection-oriented sockets. (Ref: http://msdn.microsoft.com/en-us/library/windows/desktop/ms737606(v=vs.85).aspx) I've uploaded a simple (albeit poorly written) program that connects to a socket and sends out an ICMP Ping packet to a server using connect() that you could use as a reference. (see ping.c). For some reason the receive component does not work in the program. The program will require linking in the WS2_32.lib library for the Winsock API. Attachments:
|
jleimon, Did you try applying mikio's change https://golang.org/cl/12843043/ to see if it fixes your problem? You don't need to change test files, just the fd_windows.go. Thank you. Alex |
This issue was closed by revision 180da80. Status changed to Fixed. |
This issue was updated by revision 519a9e8. R=alex.brainman CC=golang-dev https://golang.org/cl/13184043 |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by jleimon:
The text was updated successfully, but these errors were encountered: