[1cff17]: src / org / esb / hive / ProtocolServer.h Maximize Restore History

Download this file

ProtocolServer.h    39 lines (34 with data), 864 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef ORG_ESB_HIVE_PROTOCOLLSERVER_H
#define ORG_ESB_HIVE_PROTOCOLLSERVER_H
#include <iostream>
#include "org/esb/lang/Runnable.h"
#include "org/esb/net/TcpSocket.h"
#include "org/esb/util/StringUtil.h"
#include "ProtocolCommand.h"
#include "Command.h"
#include "CommandInputStream.h"
#include "org/esb/util/Log.h"
//#include "proto_command.h"
#include <list>
using namespace std;
using namespace org::esb::net;
using namespace org::esb::lang;
namespace org {
namespace esb {
namespace hive {
logger("hive.core")
class ProtocolServer : public Runnable {
private:
TcpSocket * socket;
list<ProtocolCommand*> l;
CommandInputStream * _cis;
// pthread_mutex_t * mutex;
public:
~ProtocolServer();
ProtocolServer(TcpSocket * socket);
void run();
};
}
}
}
#endif