Fawkes API Fawkes Development Version

SplRefBoxRepeater Class Reference

SPL league refbox repeater. More...

#include <>>

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:
rssrefbox state sender
broadcast_ipBroadcast IP
broadcast_portBroadcast port
our_teamour initial team
our_goalour 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:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends