Samchon Framework for CPP  1.0.0
ChatClient.hpp
1 #pragma once
2 #include <samchon/protocol/IClient.hpp>
3 
4 namespace samchon
5 {
6  namespace example
7  {
8  namespace console_chat_server
9  {
10  class ChatServer;
11 
21  class ChatClient
22  : public protocol::IClient
23  {
24  private:
25  typedef protocol::IClient super;
26 
31 
32  public:
39  ChatClient(ChatServer*, protocol::Socket*);
40 
45  virtual ~ChatClient();
46 
51  virtual void replyData(std::shared_ptr<protocol::Invoke>) override;
52  };
53  };
54  };
55 };
ChatServer * server
A ChatServer that the ChatClient is belonged to.
Definition: ChatClient.hpp:30
ChatClient(ChatServer *, protocol::Socket *)
Construct from a server and socket.
Definition: ChatClient.cpp:11
An interface for a client.
Definition: IClient.hpp:53
virtual void replyData(std::shared_ptr< protocol::Invoke >) override
Shift responsibility to related chain.
Definition: ChatClient.cpp:22
Top level namespace of products built from samchon.
Definition: ByteArray.hpp:7
virtual ~ChatClient()
Default Destructor.
Definition: ChatClient.cpp:17