Samchon Framework for CPP  1.0.0
ChatServer.hpp
1 #pragma once
2 #include <samchon/protocol/service/Server.hpp>
3 
4 namespace samchon
5 {
6  namespace example
7  {
8  namespace chat_service
9  {
10  class ChatRoomArray;
11  class ChatRoom;
12 
22  class ChatServer
23  : public protocol::service::Server
24  {
25  protected:
26  typedef protocol::service::Server super;
27 
28  virtual auto PORT() const -> int override
29  {
30  return 37749;
31  };
32 
33  private:
38 
39  public:
43  ChatServer();
44  virtual ~ChatServer();
45 
46  protected:
47  virtual auto createUser() -> protocol::service::User* override;
48 
49  public:
53  auto getChatRoomArray() const -> ChatRoomArray*;
54  };
55  };
56  };
57 };
auto getChatRoomArray() const -> ChatRoomArray *
Get chat room list.
ChatRoomArray * roomArray
A manager of chat rooms.
Definition: ChatServer.hpp:31