I don't understand what you are asking.
Using Winsock you can establish TCP/UDP connections to another box. Thats just a network protocol. What commands you send to hardware at the other end is based on what it expects.
Thing is PING/TRACERT etc are not using TCP or UDP. You wouldn't want to recreat the work. So the best thing is just redirect those program's output to your app.
Take a look at strongm post at the bottom of thread222-567909 for a link to how to use Pipes to redirect output from normal console apps.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.