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
msl2007.h
1
2
/***************************************************************************
3
* msl2007.h - Fawkes mid-size refbox repeater
4
*
5
* Created: Wed Apr 09 10:36:08 2008
6
* Copyright 2008 Tim Niemueller [www.niemueller.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_MIDSIZE_H_
24
#define __TOOLS_REFBOXREP_MIDSIZE_H_
25
26
#include "refbox_state_sender.h"
27
#include <cstdlib>
28
29
namespace
fawkes {
30
class
StreamSocket;
31
}
32
33
class
MidsizeRefBoxRepeater
34
{
35
public
:
36
MidsizeRefBoxRepeater
(
RefBoxStateSender
&rss,
37
const
char
*refbox_host,
unsigned
short
int
refbox_port);
38
~MidsizeRefBoxRepeater
();
39
40
void
run
();
41
42
private
:
43
void
process_string(
char
*buf,
size_t
len);
44
void
reconnect();
45
46
private
:
47
RefBoxStateSender
&__rss;
48
fawkes::StreamSocket
*__s;
49
50
unsigned
int
__score_cyan;
51
unsigned
int
__score_magenta;
52
53
bool
__quit;
54
55
char
*__refbox_host;
56
unsigned
short
int
__refbox_port;
57
};
58
59
#endif
src
tools
refboxrep
msl2007.h
Generated by
1.8.1.1