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
24  {
25  protected:
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.
virtual auto PORT() const -> int override
Port number of the server.
Definition: ChatServer.hpp:28
virtual auto createUser() -> protocol::service::User *override
Factory method of User.
ChatRoomArray * roomArray
A manager of chat rooms.
Definition: ChatServer.hpp:31
User containing Client(s) with session-id.
Definition: User.hpp:56
A server for (cloud) service.
Definition: Server.hpp:48
Top level namespace of products built from samchon.
Definition: ByteArray.hpp:7