I m able to retrieved active TCP and UDP connection using iphlpapi. The TCP Connection showing with source info(ip/port), Destination info(ip/port), state and process id. But for UDP Connection its no giving remote IP and port. That what i want to get. Any way to get destination information using source information or process id in Delphi or c++.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
UDP is a connectionless protocol. You can only get the local port that has been opened.
UPDATE: This applies for a static look at the port usage. However, if you have active UDP trafic you can still retrieve the remote endpoint.
User Ishmeet suggested uIP or LwIP in the comments.
UDP - Wikipedia
Connectionless Protocol - Wikipedia