msl2007.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __TOOLS_REFBOXREP_MIDSIZE_H_
00024 #define __TOOLS_REFBOXREP_MIDSIZE_H_
00025
00026 #include "refbox_state_sender.h"
00027 #include <cstdlib>
00028
00029 namespace fawkes {
00030 class StreamSocket;
00031 }
00032
00033 class MidsizeRefBoxRepeater
00034 {
00035 public:
00036 MidsizeRefBoxRepeater(RefBoxStateSender &rss,
00037 const char *refbox_host, unsigned short int refbox_port);
00038 ~MidsizeRefBoxRepeater();
00039
00040 void run();
00041
00042 private:
00043 void process_string(char *buf, size_t len);
00044 void reconnect();
00045
00046 private:
00047 RefBoxStateSender &__rss;
00048 fawkes::StreamSocket *__s;
00049
00050 unsigned int __score_cyan;
00051 unsigned int __score_magenta;
00052
00053 bool __quit;
00054
00055 char *__refbox_host;
00056 unsigned short int __refbox_port;
00057 };
00058
00059 #endif