Author Topic: Pinging a server  (Read 439 times)

I know of these functions:

querySingleServer(address, flags)
pingSingleServer(address, index)
onSimplePingTimeout()
onSimplePingReceived()


How might I use these so I can ping an IP and get the ping


Working on this, I think I can get it!


Call pingSingleServer(ip:port, index);
Parent onSImplePingTimeout and Recieved

package pingy
{
    function onSimplePingReceived(%host,%ping,%index)
   {
      Parent::onSimplePingReceived(%host,%ping,%index);
   }
   function onSimplePingTimeout(%host,%index)
   {
      Parent::onSimplePingTimeout(%host,%index);
   }
};




I'm getting issues where "onPingTimeout" is being called regardless of whether I can connect to that connection or not.
« Last Edit: September 09, 2013, 05:58:05 PM by MARBLE MAN »