Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
msl2010.h
1
2
/***************************************************************************
3
* msl2010.h - Fawkes mid-size refbox 2008 protocol repeater
4
*
5
* Created: Wed Apr 01 18:41:00 2010
6
* Copyright 2010 Stefan Schiffer [stefanschiffer.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Library General Public License for more details.
19
*
20
* Read the full text in the LICENSE.GPL file in the doc directory.
21
*/
22
23
#ifndef __TOOLS_REFBOXREP_MSL2010_H_
24
#define __TOOLS_REFBOXREP_MSL2010_H_
25
26
#include "refbox_state_sender.h"
27
28
#include <cstdlib>
29
#include <string>
30
#include <vector>
31
32
namespace
fawkes {
33
class
Socket;
34
class
StreamSocket;
35
class
MulticastDatagramSocket;
36
}
37
38
namespace
xmlpp {
39
class
DomParser;
40
class
Node;
41
}
42
43
class
Msl2010RefBoxRepeater
44
{
45
public
:
46
Msl2010RefBoxRepeater
(
RefBoxStateSender
&rss,
47
const
char
*refbox_host,
unsigned
short
int
refbox_port,
48
const
bool
use_multicast =
true
);
49
~Msl2010RefBoxRepeater
();
50
51
void
run
();
52
53
private
:
54
void
process_string(
char
*buf,
size_t
len);
55
void
reconnect();
56
57
private
:
58
RefBoxStateSender
&__rss;
59
fawkes::Socket
*__s;
60
//fawkes::StreamSocket *__s;
61
//fawkes::MulticastDatagramSocket *__s;
62
63
unsigned
int
__score_cyan;
64
unsigned
int
__score_magenta;
65
66
bool
__quit;
67
68
char
*__refbox_host;
69
unsigned
short
int
__refbox_port;
70
71
bool
__use_multicast;
72
73
xmlpp::DomParser *dom;
74
xmlpp::Node *root;
75
76
};
77
78
#endif
Msl2010RefBoxRepeater
Mid-size league refbox repeater.
Definition:
msl2010.h:43
Msl2010RefBoxRepeater::~Msl2010RefBoxRepeater
~Msl2010RefBoxRepeater()
Destructor.
Definition:
msl2010.cpp:124
RefBoxStateSender
RefBox repeater state sender.
Definition:
refbox_state_sender.h:34
fawkes::Socket
Socket base class.
Definition:
socket.h:65
Msl2010RefBoxRepeater::run
void run()
Run.
Definition:
msl2010.cpp:384
Msl2010RefBoxRepeater::Msl2010RefBoxRepeater
Msl2010RefBoxRepeater(RefBoxStateSender &rss, const char *refbox_host, unsigned short int refbox_port, const bool use_multicast=true)
Constructor.
Definition:
msl2010.cpp:104
src
tools
refboxrep
msl2010.h
Generated by
1.8.7