Msl2008RefBoxProcessor Class Reference

Mid-size league refbox repeater. More...

#include <processor/msl2008.h>

Inheritance diagram for Msl2008RefBoxProcessor:

List of all members.


Public Member Functions

 Msl2008RefBoxProcessor (const char *refbox_host, unsigned short int refbox_port)
 Constructor.
 ~Msl2008RefBoxProcessor ()
 Destructor.
void run ()
 Run.
bool check_connection ()
 Check if the connection is alive and reconnect.
void refbox_process ()
 Process incoming refbox communication.

Detailed Description

Mid-size league refbox repeater.

This class will communicate with the mid-size league refbox and derive matching game states from the communiation stream and send this via the world info.

Author:
Stefan Schiffer

Definition at line 42 of file msl2008.h.


Constructor & Destructor Documentation

Msl2008RefBoxProcessor::Msl2008RefBoxProcessor ( const char *  refbox_host,
unsigned short int  refbox_port 
)

Constructor.

Parameters:
refbox_host refbox host
refbox_port refbox port

Definition at line 98 of file msl2008.cpp.

Msl2008RefBoxProcessor::~Msl2008RefBoxProcessor (  ) 

Destructor.

Definition at line 116 of file msl2008.cpp.

References fawkes::Socket::close().


Member Function Documentation

bool Msl2008RefBoxProcessor::check_connection (  )  [virtual]

Check if the connection is alive and reconnect.

If the connection is not alive the processor shall do a single attempt to reestablish the connection.

Returns:
true if the connection is established or could be recovered, false otherwise.

Implements RefBoxProcessor.

Definition at line 356 of file msl2008.cpp.

void Msl2008RefBoxProcessor::refbox_process (  )  [virtual]

Process incoming refbox communication.

This shall process a (limited number of) communication packets received from the particular refbox at hand.

Implements RefBoxProcessor.

Definition at line 342 of file msl2008.cpp.

References fawkes::Socket::read().

void Msl2008RefBoxProcessor::run (  ) 

Run.

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

Definition at line 369 of file msl2008.cpp.

References RefBoxProcessor::_rsh, RefBoxStateHandler::handle_refbox_state(), and fawkes::Socket::read().


The documentation for this class was generated from the following files: