Get UDP connection statistics from IP Helper API (iphlpapi.dll)

只愿长相守 提交于 2019-12-12 19:18:16

问题


I would like to count the bytes received and sent from specific UDP connections in Windows 10.

This answer lists an approach to count bytes for specific TCP connections using GetPerTcpConnectionEStats() from the IP Helper API (iphlpapi.dll). I would like to mirror this approach for UDP connections.

The IP Helper API provides UDP and TCP implementations for almost all functions (e.g., GetTcpTable(), GetUdpTable()), except the documentation does not list GetPerUdpConnectionEStats(). This answer references the function nevertheless.

Is is possible to get counts of bytes received and sent from specific UDP connections with the IP Helper API?

来源:https://stackoverflow.com/questions/49588029/get-udp-connection-statistics-from-ip-helper-api-iphlpapi-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!