Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
System("Ping") always returns 0
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Phlip, post: 2544941"] You will ultimately be much better off opening a socket on the computer and port you want. Pings are for interactive command lines. If you open a socket you will get any error message Ping would have returned (as an int, not a string), and you will further verify the port you want is available. Use _popen("ping -c 4 127.0.0.1", "r"), and collect the string output of the ping. And remember the -c 4, so your Linux pinger doesn't ping forever (which is its incomprehensibly stupid default). [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
System("Ping") always returns 0
Top