Home > Back-end >  A program netstat problem
A program netstat problem

Time:12-09

The realization of the winsock programming: netstat command
Goal:
Write a simple netstat program to show that the host link and listen on port information, such as
The specific requirements:
Users can input the corresponding parameters, the output of the host TCP link and host listener ports,

CodePudding user response:

API is mainly associated with checking their port GetTcpTable, GetUdpTable, GetExtendedTcpTable, GetExtendedUdpTable, these four apis can retrieve the current system of TCP, UDP port connection table, the latter two, respectively is an extension of the first two version, you can get the current port occupy the process ID,
, the details of the transfer
http://blog.csdn.net/tht2009/article/details/40458425
  • Related