CarobNS::ControllerPingSender Class Reference

This thread sends a ping to all controllers in a given list at a given frequency. More...

#include <ControllerPingSender.hpp>

List of all members.

Public Member Functions

 ControllerPingSender (WatchedControllers &controllerList, int socket, int pingDelayInMs)
 Creates a new ControllerPingSender on the given controller list with the given frequency.
void run ()
 Starts pinging controllers.
void stop ()
 Stops the thread.


Detailed Description

This thread sends a ping to all controllers in a given list at a given frequency.

Author:
Gilles Rayrat
Version:
1.0


Constructor & Destructor Documentation

CarobNS::ControllerPingSender::ControllerPingSender ( WatchedControllers controllerList,
int  socket,
int  pingDelayInMs 
)

Creates a new ControllerPingSender on the given controller list with the given frequency.

Parameters:
controllerList controllers to ping. Should never be null
socket open socket to use for sending pings
pingDelayInMs time to wait between two successive pings


Member Function Documentation

void CarobNS::ControllerPingSender::run (  ) 

Starts pinging controllers.


Controllers will be ping with an interval of at least pingDelayInMs. But as this function is synchronized on the controller list it can be slowed down if controllers are added/removed, raising up the ping delay


The documentation for this class was generated from the following file:
Generated on Fri Mar 9 17:40:20 2007 for Carob by  doxygen 1.4.7