Assuming that all of the code is done for setting up Winsock is done, how would you check if a given ip is active/online?
Thanks
-Chris
Assuming that all of the code is done for setting up Winsock is done, how would you check if a given ip is active/online?
Thanks
-Chris
ping? pong!
Send junk data to the pingport of the remove computer, if you get response the ip is active. Also, if you do a connect try, and get an error as result, the ip isn't active. This could be a problem though, because the connect must time out before it can determin that the ip wasn't active (or it could have been, but just doesn't accept connection on thar port). So ping is the way to go.