#include <tools/refboxrep/spl.h>
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. |
This class will listen to SPL refbox commands and derive matching game states from the communication stream and send this via the world info.
Definition at line 68 of file spl.h.
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.
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 | ( | ) |
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().