Lomanic
eb1f1ab16f
Merge pull request #549 from pytimer/win_net
...
[net] Implements windows net package Connections and ConnectionsPid
2018-09-01 15:42:34 +02:00
Lomanic
ef54649286
[windows] Use windows.NewLazySystemDLL to (possibly) prevent DLL hijacking
...
Might be useless because of https://docs.microsoft.com/en-us/windows/desktop/dlls/dynamic-link-library-search-order#search-order-for-desktop-applications
but better be safe than sorry.
Ref: https://github.com/shirou/gopsutil/issues/570#issuecomment-413951653
2018-08-18 22:52:41 +02:00
pytimer
0ffcfc901f
[net][windows] Remove exported types and convert ALL_CAPS to mixedCaps
2018-07-21 14:28:53 +08:00
pytimer
1c2cebbbc4
[net] Implements windows net package function Connections and ConnectionsPid
2018-07-21 14:21:22 +08:00
shirou
4c73494c78
Add WithContext functions.
2017-12-31 15:25:49 +09:00
Sean Chittenden
635b971c0e
Move from the syscall
package to the golang.org/x/sys/{unix,windows}
2017-06-02 13:51:00 -07:00
Conor Branagan
df61ef6d5f
Add stub functions for ConnectionsMax in other OS versions.
2016-12-11 13:06:56 -05:00
Cameron Sparr
5af5f08785
Fix NetIOCounter windows interface behavior
...
addresses a few things:
- Windows has a concept of both a network "interface" and an "adapter"
- These are almost always a one-to-one relationship, though there can be
esoteric instances where they are not.
- I believe the gopsutil NetIOCounters function should only return on a
per-interface level, since this is the behavior on linux/darwin.
Previously, the plugin was basically ignoring the actual interfaces
returned from net.Interfaces(). Instead, it was looping over the net
adapters for each interface, somewhat uselessly.
FWIW, the code for getAdapterList() doesn't exist in the Go standard lib
anymore.
closes #245
2016-10-25 16:51:40 +01:00
Shirou WAKAYAMA
613a8a90e1
fixed by golint.
2016-04-01 21:34:39 +09:00
Shirou WAKAYAMA
ea152ea901
[BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters
2016-03-22 23:09:12 +09:00
Shirou WAKAYAMA
d680853370
net,process[linux]: add process.NetIOCounter and net.NetIOCounterByFile.
2016-01-21 17:31:05 +09:00
Nathaniel Cook
da832b3f12
add system wide network protocol stats
2015-11-20 10:17:21 -07:00
Shirou WAKAYAMA
7288e9a5af
common[all]: add internal
2015-10-20 00:04:57 +09:00
Shirou WAKAYAMA
406cbe9b87
implements pernic of NetIOCounters.
2015-01-01 21:29:25 +09:00
Shirou WAKAYAMA
13cd195a7e
change package name.
2014-12-30 22:09:05 +09:00
WAKAYAMA Shirou
9f2c985a28
fix windows build.
2014-11-27 22:28:05 +09:00
Shirou WAKAYAMA
a4671fcc2a
move subdirectories. refer to issue #24
2014-11-27 10:18:15 +09:00