|
A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
|
Accepts incoming WebRTC peer connections under a fixed identity. More...
#include <cpp/a11/net/webrtc_wire_stream.h>
Classes | |
| struct | State |
Public Member Functions | |
| ~WebRtcWireServer () | |
| absl::Status | Stop () |
| Stops the server and stops accepting new peer connections. | |
| std::string | identity () const |
| bool | running () const |
| size_t | pending_peer_count () const |
| std::shared_ptr< SignallingEndpoint > | signalling_endpoint () const |
Static Public Member Functions | |
| static absl::StatusOr< std::shared_ptr< WebRtcWireServer > > | Create (std::string identity, std::shared_ptr< SignallingService > signalling, OnWebRtcStream on_stream, WebRtcConfiguration configuration={}, WireStreamOptions stream_options={}) |
| Creates a WebRTC server that accepts peer connections. | |
Accepts incoming WebRTC peer connections under a fixed identity.
Listens on a signalling service for offers addressed to identity, completes the ICE/SDP handshake for each peer, and hands the resulting WebRtcWireStream to a callback.
| a11::net::WebRtcWireServer::~WebRtcWireServer | ( | ) |
|
static |
Creates a WebRTC server that accepts peer connections.
| identity | Local identity this server listens as. |
| signalling | Signalling service used to negotiate with peers. |
| on_stream | Callback invoked with each accepted stream. |
| configuration | ICE and fragmentation settings. |
| stream_options | Transport-level WireStreamOptions per stream. |
| std::string a11::net::WebRtcWireServer::identity | ( | ) | const |
| size_t a11::net::WebRtcWireServer::pending_peer_count | ( | ) | const |
| bool a11::net::WebRtcWireServer::running | ( | ) | const |
| std::shared_ptr< SignallingEndpoint > a11::net::WebRtcWireServer::signalling_endpoint | ( | ) | const |
| absl::Status a11::net::WebRtcWireServer::Stop | ( | ) |
Stops the server and stops accepting new peer connections.