https://github.com/titiky441/iphlpapiconnectionswrapper
Fast .NET iphlpapi.dll wrapper for listing all active TCP/UDP connections
https://github.com/titiky441/iphlpapiconnectionswrapper
csharp dotnet iphlpapi iphlpapi-dll pinvoke-wrapper
Last synced: about 2 months ago
JSON representation
Fast .NET iphlpapi.dll wrapper for listing all active TCP/UDP connections
- Host: GitHub
- URL: https://github.com/titiky441/iphlpapiconnectionswrapper
- Owner: TiTiKy441
- License: mit
- Created: 2025-02-27T20:30:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-16T22:49:41.000Z (6 months ago)
- Last Synced: 2025-12-18T08:39:19.960Z (6 months ago)
- Topics: csharp, dotnet, iphlpapi, iphlpapi-dll, pinvoke-wrapper
- Language: C#
- Homepage:
- Size: 121 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IpHlpApiConnectionsWrapper
This is a C# wrapper for iphlpapi.dll
It was made for the purpose of retrieving all TCP/UDP connections of any type (process/module/basic, ipv6/ipv4) as fast as possible
Available functions and methods:
1. `SetBufferSize(int newSize)`
Sets buffer size. Reallocates internal buffer for storing data between iphlpapi.dll and the wrapper.
3. `GetTcpTable(NetworkType networkType, TcpTableClass tcpTable, bool sortedOrder = false)`
Retrieves information about all tcp connections of any type (process/module/basic) in the specified network layer (ipv4/ipv6)
5. `GetUdpTable(NetworkType networkType, UdpTableClass udpTable, bool sortedOrder = false))`
Retrieves information about all udp connections of any type (process/module/basic) in the specified network layer (ipv4/ipv6)