SplRefBoxRepeater Class Reference

SPL league refbox repeater. More...

#include <tools/refboxrep/spl.h>

List of all members.

Public Member Functions

 SplRefBoxRepeater (RefBoxStateSender &rss, const char *broadcast_ip, unsigned short int broadcast_port, fawkes::worldinfo_gamestate_team_t our_team, fawkes::worldinfo_gamestate_goalcolor_t our_goal)
 Constructor.
 ~SplRefBoxRepeater ()
 Destructor.
void run ()
 Run.


Detailed Description

SPL league refbox repeater.

This class will listen to SPL refbox commands and derive matching game states from the communication stream and send this via the world info.

Author:
Tim Niemueller

Definition at line 68 of file spl.h.


Constructor & Destructor Documentation

SplRefBoxRepeater::SplRefBoxRepeater ( RefBoxStateSender rss,
const char *  broadcast_ip,
unsigned short int  broadcast_port,
fawkes::worldinfo_gamestate_team_t  our_team,
fawkes::worldinfo_gamestate_goalcolor_t  our_goal 
)

Constructor.

Parameters:
rss refbox state sender
broadcast_ip Broadcast IP
broadcast_port Broadcast port
our_team our initial team
our_goal our initial goal

Definition at line 76 of file spl.cpp.

References fawkes::Socket::bind().

SplRefBoxRepeater::~SplRefBoxRepeater (  ) 

Destructor.

Definition at line 96 of file spl.cpp.

References fawkes::Socket::close().


Member Function Documentation

void SplRefBoxRepeater::run (  ) 

Run.

Reads messages from the network, processes them and calls the refbox state sender.

Definition at line 155 of file spl.cpp.

References fawkes::Socket::recv().


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 13:32:37 2011 for Fawkes API by  doxygen 1.4.7