#include <icy/webrtc/support/sympleserversignaller.h>Inherits:
SignallingInterface
Server-side Symple signaller for virtual peers and embedded apps.
This adapter sends signalling messages through a [smpl::Server](icy-smpl-Server.html#server-11) on behalf of a local virtual peer address, and accepts inbound Symple call messages through [onMessage()](#onmessage-2).
The remote peer identifier on this signalling boundary is the full Symple address string (user|id).
| Return | Name | Description |
|---|---|---|
SympleServerSignaller | ||
SympleServerSignaller | Deleted constructor. | |
void | sendSdp virtual | Send an SDP offer or answer to the remote peer. |
void | sendCandidate virtual | Send an ICE candidate to the remote peer. |
void | sendControl virtual | Send a control message to the remote peer. |
void | onMessage | |
void | setRemoteAddress | |
const std::string & | localAddress const inline | |
const std::string & | remoteAddress const inline |
SympleServerSignaller(smpl::Server & server, std::string localAddress, std::string remoteAddress)SympleServerSignaller(const SympleServerSignaller &) = deleteDeleted constructor.
virtual
virtual void sendSdp(const std::string & peerId, const std::string & type, const std::string & sdp)Send an SDP offer or answer to the remote peer.
peerId Remote peer identifier.
type "offer" or "answer".
sdp The SDP string.
virtual
virtual void sendCandidate(const std::string & peerId, const std::string & candidate, const std::string & mid)Send an ICE candidate to the remote peer.
peerId Remote peer identifier.
candidate The candidate string (from RTCIceCandidate).
mid The sdpMid value.
virtual
virtual void sendControl(const std::string & peerId, const std::string & type, const std::string & reason)Send a control message to the remote peer.
peerId Remote peer identifier.
type Control type: "init", "accept", "reject", "hangup".
reason Optional reason string (for reject/hangup).
void onMessage(const json::Value & msg)void setRemoteAddress(std::string remoteAddress)const inline
inline const std::string & localAddress() constconst inline
inline const std::string & remoteAddress() const| Return | Name | Description |
|---|---|---|
smpl::Server & | _server | |
std::string | _localAddress | |
std::string | _remoteAddress | |
Synchronizer | _dispatch | |
std::mutex | _mutex | |
std::deque< OutboundMessage > | _pending | |
bool | _closing |
smpl::Server & _serverstd::string _localAddressstd::string _remoteAddressSynchronizer _dispatchstd::mutex _mutexstd::deque< OutboundMessage > _pendingbool _closing = false| Return | Name | Description |
|---|---|---|
void | send | |
bool | sendNow | |
void | flushPending |
void send(const std::string & action, const std::string & to, const json::Value & data)bool sendNow(const std::string & to, const json::Value & msg)void flushPending()