Current location - Quotes Website - Collection of slogans - Windows programming problem! ! C++ obtains the corresponding process PID according to the port number, but some ports can't find the corresponding process. Why?
Windows programming problem! ! C++ obtains the corresponding process PID according to the port number, but some ports can't find the corresponding process. Why?
netstat -ano

This command is definitely available. I suggest you call the netstat -ano command circularly and write it to a file.

Maybe you called after you sent it. At this point, the port is no longer sending data.