Babel
Epitech's C++ VoIP project
|
Go to the documentation of this file.
23 virtual bool start(uint16_t port) = 0;
26 virtual void stop() = 0;
35 virtual void update(uint64_t nbMessagesToProcess,
bool wait) = 0;
virtual ~ITCPServer()=default
default dtor
virtual void messageClient(std::shared_ptr< ITCPConnection< T >> client, const Message< T > &msg)=0
Send a message to the specified client.
Definition: Message.hpp:46
virtual void onClientDisconnect(std::shared_ptr< ITCPConnection< T >> client)=0
Called when a client disconnect.
Definition: IAudioManager.hpp:13
virtual void onMessage(std::shared_ptr< ITCPConnection< T >> client, Message< T > &msg)=0
Called when we received a message from a client.
virtual void stop()=0
Stop the server.
Definition: ITCPConnection.hpp:16
virtual void messageAllClients(const Message< T > &msg)=0
Send a message to all connected clients.
Definition: ITCPServer.hpp:18
virtual void update(uint64_t nbMessagesToProcess, bool wait)=0
Forces the server to call callbacks.
virtual bool onClientConnect(std::shared_ptr< ITCPConnection< T >> client)=0
Called when a client connect.
virtual bool start(uint16_t port)=0
Starts the server on indicated port.