|
| | DataChannelClient (SignalingServerConfiguration signalingServerConfiguration, WebrtcConfiguration webrtcConfiguration, DataChannelConfiguration dataChannelConfiguration) |
| | Creates a data channel client with the specified configurations. More...
|
| |
|
| DECLARE_NOT_COPYABLE (DataChannelClient) |
| |
|
| DECLARE_NOT_MOVABLE (DataChannelClient) |
| |
|
bool | sendTo (const uint8_t *data, std::size_t size, const std::vector< std::string > &ids) |
| |
| bool | sendTo (const std::string &message, const std::vector< std::string > &ids) |
| | Sends a string message to the specified clients. More...
|
| |
|
bool | sendToAll (const uint8_t *data, std::size_t size) |
| |
| bool | sendToAll (const std::string &message) |
| | Sends a string message to all clients. More...
|
| |
| void | setOnDataChannelOpened (const std::function< void(const Client &)> &callback) |
| | Sets the callback that is called when a data channel opens. More...
|
| |
| void | setOnDataChannelClosed (const std::function< void(const Client &)> &callback) |
| | Sets the callback that is called when a data channel closes. More...
|
| |
| void | setOnDataChannelError (const std::function< void(const Client &, const std::string &)> &callback) |
| | Sets the callback that is called when a data channel error occurs. More...
|
| |
| void | setOnDataChannelMessageBinary (const std::function< void(const Client &, const uint8_t *, std::size_t)> &callback) |
| | Sets the callback that is called when binary data are received. More...
|
| |
| void | setOnDataChannelMessageString (const std::function< void(const Client &, const std::string &)> &callback) |
| | Sets the callback that is called when a string message is received. More...
|
| |
|
| WebrtcClient (SignalingServerConfiguration &&signalingServerConfiguration, WebrtcConfiguration &&webrtcConfiguration, VideoStreamConfiguration &&videoStreamConfiguration) |
| |
|
| DECLARE_NOT_COPYABLE (WebrtcClient) |
| |
|
| DECLARE_NOT_MOVABLE (WebrtcClient) |
| |
| void | setTlsVerificationEnabled (bool isEnabled) |
| |
|
void | connect () |
| | Connects the client the signaling server.
|
| |
|
void | close () |
| | Closes all client connections (asynchronous).
|
| |
|
void | closeSync () |
| | Closes all client connections (synchronous).
|
| |
|
void | callAll () |
| | Calls all room clients.
|
| |
| void | callIds (const std::vector< std::string > &ids) |
| | Calls the specified clients. More...
|
| |
|
void | hangUpAll () |
| | Hangs up all clients.
|
| |
|
void | closeAllRoomPeerConnections () |
| | Closes all room peer connections.
|
| |
| bool | isConnected () |
| | Indicates if the client is connected to the signaling server. More...
|
| |
| bool | isRtcConnected () |
| | Indicates if the client is connected to at least one client (RTCPeerConnection). More...
|
| |
| std::string | id () |
| | Returns the client id. More...
|
| |
| std::vector< std::string > | getConnectedRoomClientIds () |
| | Returns the connected room client ids. More...
|
| |
| RoomClient | getRoomClient (const std::string &id) |
| | Returns the room client that matches with the specified id. If no room client matches with the id, a default room client is returned. More...
|
| |
| std::vector< RoomClient > | getRoomClients () |
| | Returns the room clients. More...
|
| |
| void | setOnSignalingConnectionOpened (const std::function< void()> &callback) |
| | Sets the callback that is called when the signaling connection opens. More...
|
| |
| void | setOnSignalingConnectionClosed (const std::function< void()> &callback) |
| | Sets the callback that is called when the signaling connection closes. More...
|
| |
| void | setOnSignalingConnectionError (const std::function< void(const std::string &)> &callback) |
| | Sets the callback that is called when a signaling connection error occurs. More...
|
| |
| void | setOnRoomClientsChanged (const std::function< void(const std::vector< RoomClient > &)> &callback) |
| | Sets the callback that is called when the room client changes. More...
|
| |
| void | setCallAcceptor (const std::function< bool(const Client &)> &callback) |
| | Sets the callback that is used to accept or reject a call. More...
|
| |
| void | setOnCallRejected (const std::function< void(const Client &)> &callback) |
| | Sets the callback that is called when a call is rejected. More...
|
| |
| void | setOnClientConnected (const std::function< void(const Client &)> &callback) |
| | Sets the callback that is called when a client peer connection opens. More...
|
| |
| void | setOnClientDisconnected (const std::function< void(const Client &)> &callback) |
| | Sets the callback that is called when a client peer connection closes. More...
|
| |
| void | setOnClientConnectionFailed (const std::function< void(const Client &)> &callback) |
| | Sets the callback that is called when a client peer connection fails. More...
|
| |
| void | setOnError (const std::function< void(const std::string &error)> &callback) |
| | Sets the callback that is called when an error occurs. More...
|
| |
| void | setLogger (const std::function< void(const std::string &message)> &callback) |
| | Sets the callback that is used to log information. More...
|
| |
|
|
bool | sendTo (const webrtc::DataBuffer &buffer, const std::vector< std::string > &ids) |
| |
|
bool | sendToAll (const webrtc::DataBuffer &buffer) |
| |
|
std::unique_ptr< PeerConnectionHandler > | createPeerConnectionHandler (const std::string &id, const Client &peerClient, bool isCaller) override |
| |
|
template<class T , class... Types> |
| void | invokeIfCallable (const std::function< T > &f, Types... args) |
| |
|
void | log (const std::string &message) |
| |
|
std::function< void(const std::string &)> | getOnErrorFunction () |
| |
|
std::function< void(const Client &)> | getOnClientConnectedFunction () |
| |
|
std::function< void(const Client &)> | getOnClientDisconnectedFunction () |
| |
|
std::function< void(const Client &)> | getOnClientConnectionFailedFunction () |
| |
|
rtc::Thread * | getInternalClientThread () |
| |
Represents a client for data channel communication.