View Single Post
Old 04-27-2006, 10:55 PM   #1 (permalink)
jaro
Registered User
 
jaro's Avatar
 
Join Date: Feb 2006
Posts: 9
jaro is on a distinguished road
Question how do I know if a server (on the box) is running?

Hi again,

Lately I'm doing socket programming, as far I can tell it works fine.
the problem is that how do I know if a server (on the box) is running.
The gethostbyname() will only detect if a IP address exist or is currently running.

The only idea that I have is, after gethostbyname() and a successful connect() my program will send some sort of message, then the (workspace)server will then send a valid response. If no valid response is recieve then the process will start all over again.

is this the way to go, just to know if a (workspace)server is running or there is another way ?

regards,
jaro
jaro is offline   Reply With Quote