BMA Server Framework
/home/bradarant/barant/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 Command {
21 
22  public:
23 
29 
30  Service();
31 
32  void removeFromSessionList(Session *session);
33 
34  virtual void sessionErrorHandler(std::string errorString, Session *session);
35 
43 
44  virtual Session * getSocketAccept(EPoll &epoll);
45 
46  void output(Session *session) override;
47 
51 
52  std::vector<Session *> sessions;
53 
58 
60 
61  };
62 
63 }
64 
65 #endif
Service()
Definition: Service.cpp:7
void output(Session *session) override
Output the consoles array to the console.
Definition: Service.cpp:24
Definition: EPoll.h:31
CommandList commands
Definition: Service.h:59
Definition: Command.cpp:4
Definition: Session.h:22
virtual Session * getSocketAccept(EPoll &epoll)
Definition: Service.cpp:20
std::vector< Session * > sessions
Definition: Service.h:52
Definition: Service.h:20
Definition: Command.h:18
Definition: CommandList.h:18