Skip to content

Want to get data like netstat, but in C#?

License

Notifications You must be signed in to change notification settings

itssimple/ItsSimple.NetStatData

Repository files navigation

ItsSimple.NetStatData

Usage

Fetch the list of connections like this

// Slow (fetching owner and executable path takes considerable time)
var connections = NetStatData.GetTcpConnectionsWithProcessInformation();

// Not as slow
var connections2 = NetStatData.GetTcpConnections();

// Both methods support filters

var filter = NetStatData.GetTcpConnections(f => 
  f.state == ItsSimple.NetStatData.Win32.ConnectionState.TimeWait
);

About

Want to get data like netstat, but in C#?

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages