Babel
Epitech's C++ VoIP project
|
Go to the documentation of this file.
22 virtual void connect(
const std::string &hostname, uint16_t port) = 0;
41 virtual uint64_t
getId()
const = 0;
44 virtual void setId(uint64_t
id) = 0;
47 virtual std::string
getPeerIp()
const = 0;
virtual ~ITCPConnection()=default
default dtor
virtual bool isConnected() const =0
Tells if the connection is up.
virtual uint16_t getPeerPort() const =0
get the connected pair port
Definition: Message.hpp:46
virtual uint64_t getId() const =0
Get the id of this connection.
virtual void setCallbackOnMessage(std::function< void(Message< T >)> callMessageReceived)=0
Called when we received a message.
virtual void setId(uint64_t id)=0
set the id of the connection
virtual void readForMessages()=0
listen for new messages
Definition: IAudioManager.hpp:13
Definition: ITCPConnection.hpp:16
virtual void connect(const std::string &hostname, uint16_t port)=0
connect to a hostname and a port
virtual std::string getPeerIp() const =0
Get the connected pair address.
virtual void disconnect()=0
disconnect the connection
virtual void send(Message< T > message)=0
Send the message.