that may be fine if you are checking for a tcp/ip
connection. you could also us the clientsocket object
to check the connection. If you are accessing windows
networking I would guess you would have to use a netbeui
type connection. This I havent a clue. But I would imagine you would just attempt to connect with a socket or whatever and test return values. If you are using a socket you will be connecting to a server and if the server is not available you know the network connection is not up. You should have some error checking whenever you access the server anyway, just extend this to your situation.
In a nutshell, Just connect, if you cant, you cant.
tomcruz.net