|
|
I?ve used Valentin Schmidt?s Shell Xtra
(http://staff.dasdeck.de/valentin/xtras/shell/) to execute pings from Director
to keep a VPN connection alive. I think ping is used as a specific example in
his ?read me? document. The xtra can execute either synchronously or
asynchronously. Waiting for a synchronous response is much easier from a
programming standpoint but it?s a fairly bad approach for your users, working
out the details for processing a net operation asynchronously will provide a
much better user experience and as Mike said, all of the other net lingo
operations are asynchronous anyway.
That having been said, I?m not sure ping is really what you need. Any number
of things can go wrong when communicating with a script on a remote server and
you have to include significant error handling for most of them. A ping will
tell you that the connection is alive and the server is responding to pings but
that?s all. I would just request the registration page from the server and
check netError() if the server fails to respond. (you?re going to need that
error handler even if the server is responding to pings).
|
|