SympleSignaller
#include <icy/webrtc/support/symplesignaller.h>
class SympleSignallerDefined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:34
- Inherits
SignallingInterface
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 override | ||
SympleSignaller | Deleted constructor. | |
SympleSignaller & | operator= | Deleted assignment operator. |
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
override
~SympleSignaller() overrideDefined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:38
SympleSignaller
SympleSignaller(const SympleSignaller &) = deleteDefined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:40
Deleted constructor.
operator=
SympleSignaller & operator=(const SympleSignaller &) = deleteDefined in src/webrtc/support/include/icy/webrtc/support/symplesignaller.h:41
Deleted assignment operator.
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.
Reimplements
Parameters
| Parameter | Type | Description |
|---|---|---|
peerId | const std::string & | Remote peer identifier. |
type | const std::string & | "offer" or "answer". |
sdp | const std::string & | The SDP string. |
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.
Reimplements
Parameters
| Parameter | Type | Description |
|---|---|---|
peerId | const std::string & | Remote peer identifier. |
candidate | const std::string & | The candidate string (from RTCIceCandidate). |
mid | const std::string & | The sdpMid value. |
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.
Reimplements
Parameters
| Parameter | Type | Description |
|---|---|---|
peerId | const std::string & | Remote peer identifier. |
type | const std::string & | Control type: "init", "accept", "reject", "hangup". |
reason | const std::string & | Optional reason string (for reject/hangup). |
Private Attributes
| Return | Name | Description |
|---|---|---|
smpl::Client & | _client |
_client
smpl::Client & _clientType: smpl::Client &
Defined 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
