从IP Helper API获取UDP连接统计信息(iphlpapi.dll)

时间:2018-03-31 13:00:47

标签: c# windows udp network-traffic iphelper

我想计算从Windows 10中的特定UDP连接接收和发送的字节数。

This answer lists an approach to count bytes for specific TCP connections使用来自IP帮助程序API GetPerTcpConnectionEStats()的{​​{1}}。我想为UDP连接镜像这种方法。

IP Helper API为几乎所有功能(例如iphlpapi.dllGetTcpTable())提供UDP和TCP实现,但documentation does not list GetUdpTable()除外。 不过This answer references the function

是否可以通过IP Helper API获取从特定UDP连接接收和发送的字节数?

0 个答案:

没有答案