Advertisement

NETSTAT

Started by August 14, 2002 07:00 AM
1 comment, last by moore52 22 years, 5 months ago
How to write something like windows netstat, but without using iphlapi? How to get full lists of connections using only WSA? There are any api (only ws2_32.dll) to do this? The greatest help will be source example.
You can''t. Winsock is only a relatively high-level API for writing network applications. To write the equivalent of netstat, you''d need to either know more about the underlying implementation of the TCP/IP stack, or be using an API which exposed more infomation than winsock does.

If I had my way, I''d have all of you shot!


codeka.com - Just click it.

Advertisement
Look at the source for TCPDump (*nix) or WinDump (windows).

WinDump: http://windump.polito.it


This topic is closed to new replies.

Advertisement