1 #include <samchon/examples/console_chat_server/ChatClient.hpp> 2 #include <samchon/examples/console_chat_server/ChatServer.hpp> 4 #include <samchon/protocol/Invoke.hpp> 11 ChatClient::ChatClient(
ChatServer *server, Socket *socket)
ChatServer * server
A ChatServer that the ChatClient is belonged to.
virtual void replyData(std::shared_ptr< protocol::Invoke >) override
Handling replied message.
Package of network protocol and libraries.
An interface for a client.
Socket * socket
Socket for network I/O.
void eraseClient(ChatClient *client)
Erase client when disconnected.
virtual void replyData(std::shared_ptr< protocol::Invoke >) override
Shift responsibility to related chain.
virtual ~ChatClient()
Default Destructor.