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 2010 protocol repeater
4
*
5
* Created: Wed Apr 01 10:36:08 2009
6
* Copyright 2009 Stefan Schiffer [stefanschiffer.de]
7
* 2010 Tim Niemueller [www.niemueller.de]
8
*
9
****************************************************************************/
10
11
/* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Library General Public License for more details.
20
*
21
* Read the full text in the LICENSE.GPL file in the doc directory.
22
*/
23
24
#ifndef __PLUGINS_REFBOXCOMM_PROCESSOR_MSL2010_H_
25
#define __PLUGINS_REFBOXCOMM_PROCESSOR_MSL2010_H_
26
27
#include "processor.h"
28
#include "state_handler.h"
29
30
#include <cstddef>
31
32
namespace
fawkes {
33
class
MulticastDatagramSocket;
34
class
Logger;
35
}
36
37
namespace
xmlpp {
38
class
DomParser;
39
class
Node;
40
}
41
42
class
Msl2010RefBoxProcessor
:
public
RefBoxProcessor
43
{
44
public
:
45
Msl2010RefBoxProcessor
(
fawkes::Logger
*logger,
46
const
char
*refbox_host,
unsigned
short
int
refbox_port);
47
~Msl2010RefBoxProcessor
();
48
49
bool
check_connection
();
50
void
refbox_process
();
51
52
private
:
53
void
process_string(
char
*buf,
size_t
len);
54
void
reconnect();
55
56
private
:
57
fawkes::Logger
*__logger;
58
fawkes::MulticastDatagramSocket
*__s;
59
60
unsigned
int
__score_cyan;
61
unsigned
int
__score_magenta;
62
63
const
char
*__name;
64
65
bool
__quit;
66
bool
__connection_died;
67
68
char
*__refbox_host;
69
unsigned
short
int
__refbox_port;
70
71
72
xmlpp::DomParser *dom;
73
xmlpp::Node *root;
74
75
};
76
77
#endif
src
plugins
refboxcomm
processor
msl2010.h
Generated by
1.8.1.2