BMA Server Framework
/home/barant/Development/BMA/server_core/ServerCore/Service.h
1 #ifndef __Service_h__
2 #define __Service_h__
3 
4 #include "Object.h"
5 #include "CommandList.h"
6 
7 namespace core {
8 
9  class TCPServerSocket;
10 
19 
20  class Service : public Object {
21 
22  public:
23 
29 
30  Service();
31 
32  virtual void init(TCPServerSocket *server);
33 
34  void removeFromSessionList(Session *session);
35 
36  virtual void sessionErrorHandler(std::string errorString, Session *session);
37 
41 
42  std::vector<Session *> sessions;
43 
48 
50 
55 
57 
58  };
59 
60 }
61 
62 #endif
Service()
Definition: Service.cpp:7
CommandList commands
Definition: Service.h:56
Definition: Command.cpp:4
Definition: Session.h:22
std::vector< Session * > sessions
Definition: Service.h:42
TCPServerSocket * server
Definition: Service.h:49
Definition: Service.h:20
Definition: Object.h:8
Definition: CommandList.h:17
Definition: TCPServerSocket.h:22