我想计算从Windows 10中的特定UDP连接接收和发送的字节数。
This answer lists an approach to count bytes for specific TCP connections使用来自IP帮助程序API GetPerTcpConnectionEStats()
的{{1}}。我想为UDP连接镜像这种方法。
IP Helper API为几乎所有功能(例如iphlpapi.dll
,GetTcpTable()
)提供UDP和TCP实现,但documentation does not list GetUdpTable()
除外。
不过This answer references the function。
是否可以通过IP Helper API获取从特定UDP连接接收和发送的字节数?