SympleSignaller
SympleSignaller
#include <icy/webrtc/support/symplesignaller.h>class SympleSignallerDefined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:34
Inherits:
SignallingInterface
SignallingInterface implementation using the Symple call protocol.
Speaks the call:init, call:accept, call:reject, call:offer, call:answer, call:candidate, and call:hangup envelope over a connected Symple client.
The remote peer identifier on this signalling boundary is the full Symple address string (user|id).
List of all members
| Name | Kind | Owner |
|---|---|---|
SympleSignaller | function | Declared here |
~SympleSignaller | function | Declared here |
SympleSignaller | function | Declared here |
operator= | function | Declared here |
sendSdp | function | Declared here |
sendCandidate | function | Declared here |
sendControl | function | Declared here |
_client | variable | Declared here |
onMessage | function | Declared here |
send | function | Declared here |
SdpReceived | variable | Inherited from SignallingInterface |
CandidateReceived | variable | Inherited from SignallingInterface |
ControlReceived | variable | Inherited from SignallingInterface |
~SignallingInterface | function | Inherited from SignallingInterface |
sendSdp | function | Inherited from SignallingInterface |
sendCandidate | function | Inherited from SignallingInterface |
sendControl | function | Inherited from SignallingInterface |
Inherited from SignallingInterface
| Kind | Name | Description |
|---|---|---|
variable | SdpReceived | Fires when an SDP offer or answer arrives from a remote peer. Parameters: peerId, type ("offer"/"answer"), sdp. |
variable | CandidateReceived | Fires when an ICE candidate arrives from a remote peer. Parameters: peerId, candidate, mid. |
variable | ControlReceived | Fires when a control message arrives from a remote peer. Parameters: peerId, type ("init"/"accept"/"reject"/"hangup"), reason. |
function | ~SignallingInterface virtual | Defaulted destructor. |
function | sendSdp virtual | Send an SDP offer or answer to the remote peer. |
function | sendCandidate virtual | Send an ICE candidate to the remote peer. |
function | sendControl virtual | Send a control message to the remote peer. |
Public Methods
| Return | Name | Description |
|---|---|---|
SympleSignaller explicit | ||
SympleSignaller | Deleted constructor. | |
void | sendSdp virtual override | Send an SDP offer or answer to the remote peer. |
void | sendCandidate virtual override | Send an ICE candidate to the remote peer. |
void | sendControl virtual override | Send a control message to the remote peer. |
SympleSignaller
explicit
explicit SympleSignaller(smpl::Client & client)Defined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:37
SympleSignaller
SympleSignaller(const SympleSignaller &) = deleteDefined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:40
Deleted constructor.
sendSdp
virtual override
virtual void sendSdp(const std::string & peerId, const std::string & type, const std::string & sdp) overrideDefined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:43
Send an SDP offer or answer to the remote peer.
Parameters
peerIdRemote peer identifier.type"offer" or "answer".sdpThe SDP string.
Reimplements
sendCandidate
virtual override
virtual void sendCandidate(const std::string & peerId, const std::string & candidate, const std::string & mid) overrideDefined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:47
Send an ICE candidate to the remote peer.
Parameters
peerIdRemote peer identifier.candidateThe candidate string (from RTCIceCandidate).midThe sdpMid value.
Reimplements
sendControl
virtual override
virtual void sendControl(const std::string & peerId, const std::string & type, const std::string & reason = {}) overrideDefined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:51
Send a control message to the remote peer.
Parameters
peerIdRemote peer identifier.typeControl type: "init", "accept", "reject", "hangup".reasonOptional reason string (for reject/hangup).
Reimplements
Private Attributes
| Return | Name | Description |
|---|---|---|
smpl::Client & | _client |
_client
smpl::Client & _clientDefined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:61
Private Methods
onMessage
void onMessage(smpl::Message & msg)Defined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:56
send
void send(const std::string & action, const std::string & to, const json::Value & data = {})Defined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:57
