1 #include <samchon/examples/console_chat_server/ChatServer.hpp> 2 #include <samchon/examples/console_chat_server/ChatClient.hpp> 5 #include <samchon/protocol/Invoke.hpp> 12 ChatServer::ChatServer()
40 (*it)->sendData(invoke);
An interface of a physical server.
library::RWMutex rwMutex
A rw_mutex managing clientSet.
virtual void replyData(std::shared_ptr< protocol::Invoke >) override
Handling replied message.
std::set< ChatClient * > clientSet
List of clients.
Package of network protocol and libraries.
virtual void sendData(std::shared_ptr< protocol::Invoke >) override
Sending a message.
virtual void addClient(protocol::Socket *socket) override
Add a client.
void eraseClient(ChatClient *client)
Erase client when disconnected.
virtual void listen()
Listens message from a related system.