-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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] Implements windows net package Connections and ConnectionsPid #549
Conversation
Thanks for this great PR @pytimer. I won't be able to test this before the weekend, but just reading the code:
|
Thanks for your reply. I think i should do at least two things, as follows:
i don't understand TCPStatuses, can you explain it again? thanks. |
@Lomanic i merge I don't know i understand right? If it wrong, welcome to point out. Thanks. |
I think can we move common variable to Windows net status is different from linux, so i defined new variable.This variable now is private, and itonly used in net package, not used by 3rd-party code. is it deal right? |
Thank you for your very cool contribution!
|
I already change net_windows.go |
Don't export the following types/constants and make them Go-compliant (convert ALL_CAPS to mixedCaps, put a comment referencing their proper name in the win32 API docs, check with golint, see also Effective Go)
Otherwise I tested it on Windows, excellent work @pytimer, it works great! |
ok. I will see about you said. Thanks. |
@Lomanic I send a new commit to fix this PR problem, you can check it again. If something missing, please tell me. Thanks. |
Sorry, i am busy in recent days.
Implement #534 . Support for Windows net package, i implements Connections() and ConnectionsPid() two functions.
Usage is similar with linux net:
I don't know other functions how to implement, if anyone have idea, welcome to tell me. Thanks.