Fork me on GitHub
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
janus_handle Struct Reference

Janus handle. More...

#include <ice.h>

Collaboration diagram for janus_handle:
Collaboration graph
[legend]

Data Fields

void * session
 Opaque pointer to the core/peer session. More...
 
guint64 handle_id
 Handle identifier, guaranteed to be non-zero. More...
 
char * opaque_id
 Opaque identifier, e.g., to provide inter-handle relationships to external tools. More...
 
gint64 created
 Monotonic time of when the handle has been created. More...
 
void * app
 Opaque application (plugin) pointer. More...
 
janus_plugin_sessionapp_handle
 Opaque core/plugin session pointer. More...
 
janus_flags webrtc_flags
 Mask of WebRTC-related flags for this handle. More...
 
gint cdone
 Number of gathered candidates. More...
 
GMainContext * mainctx
 GLib context for the handle and libnice. More...
 
GMainLoop * mainloop
 GLib loop for the handle and libnice. More...
 
GThread * thread
 GLib thread for the handle and libnice. More...
 
GSource * rtp_source
 GLib sources for outgoing traffic, recurring RTCP, and stats (and optionally TWCC) More...
 
GSource * rtcp_source
 
GSource * stats_source
 
GSource * twcc_source
 
NiceAgent * agent
 libnice ICE agent More...
 
gint64 agent_created
 Monotonic time of when the ICE agent has been created. More...
 
gboolean controlling
 ICE role (controlling or controlled) More...
 
gchar * pc_mid
 Main mid. More...
 
guint stream_id
 ICE Stream ID. More...
 
janus_handle_webrtcpc
 WebRTC PeerConnection, if any. More...
 
gchar * rtp_profile
 RTP profile set by caller (so that we can match it) More...
 
gchar * local_sdp
 SDP generated locally (just for debugging purposes) More...
 
gchar * remote_sdp
 SDP received by the peer (just for debugging purposes) More...
 
const gchar * hangup_reason
 Reason this handle has been hung up. More...
 
GList * pending_trickles
 List of pending trickle candidates (those we received before getting the JSEP offer) More...
 
GAsyncQueue * queued_packets
 Queue of events in the loop and outgoing packets to send. More...
 
guint srtp_errors_count
 Count of the recent SRTP replay errors, in order to avoid spamming the logs. More...
 
gint last_srtp_error
 Count of the recent SRTP replay errors, in order to avoid spamming the logs. More...
 
gint last_srtp_summary
 
gint last_event_stats
 Count of how many seconds passed since the last stats passed to event handlers. More...
 
volatile gint dump_packets
 Flag to decide whether or not packets need to be dumped to a text2pcap file. More...
 
janus_text2pcaptext2pcap
 In case this session must be saved to text2pcap, the instance to dump packets to. More...
 
janus_mutex mutex
 Mutex to lock/unlock the ICE session. More...
 
volatile gint closepc
 Whether a close_pc was requested recently on the PeerConnection. More...
 
volatile gint destroyed
 Atomic flag to check if this instance has been destroyed. More...
 
janus_refcount ref
 Reference counter for this instance. More...
 

Detailed Description

Janus handle.

Field Documentation

NiceAgent* janus_handle::agent

libnice ICE agent

gint64 janus_handle::agent_created

Monotonic time of when the ICE agent has been created.

void* janus_handle::app

Opaque application (plugin) pointer.

janus_plugin_session* janus_handle::app_handle

Opaque core/plugin session pointer.

gint janus_handle::cdone

Number of gathered candidates.

volatile gint janus_handle::closepc

Whether a close_pc was requested recently on the PeerConnection.

gboolean janus_handle::controlling

ICE role (controlling or controlled)

gint64 janus_handle::created

Monotonic time of when the handle has been created.

volatile gint janus_handle::destroyed

Atomic flag to check if this instance has been destroyed.

volatile gint janus_handle::dump_packets

Flag to decide whether or not packets need to be dumped to a text2pcap file.

guint64 janus_handle::handle_id

Handle identifier, guaranteed to be non-zero.

const gchar* janus_handle::hangup_reason

Reason this handle has been hung up.

gint janus_handle::last_event_stats

Count of how many seconds passed since the last stats passed to event handlers.

gint janus_handle::last_srtp_error

Count of the recent SRTP replay errors, in order to avoid spamming the logs.

gint janus_handle::last_srtp_summary
gchar* janus_handle::local_sdp

SDP generated locally (just for debugging purposes)

GMainContext* janus_handle::mainctx

GLib context for the handle and libnice.

GMainLoop* janus_handle::mainloop

GLib loop for the handle and libnice.

janus_mutex janus_handle::mutex

Mutex to lock/unlock the ICE session.

char* janus_handle::opaque_id

Opaque identifier, e.g., to provide inter-handle relationships to external tools.

janus_handle_webrtc* janus_handle::pc

WebRTC PeerConnection, if any.

gchar* janus_handle::pc_mid

Main mid.

GList* janus_handle::pending_trickles

List of pending trickle candidates (those we received before getting the JSEP offer)

GAsyncQueue* janus_handle::queued_packets

Queue of events in the loop and outgoing packets to send.

janus_refcount janus_handle::ref

Reference counter for this instance.

gchar* janus_handle::remote_sdp

SDP received by the peer (just for debugging purposes)

GSource * janus_handle::rtcp_source
gchar* janus_handle::rtp_profile

RTP profile set by caller (so that we can match it)

GSource* janus_handle::rtp_source

GLib sources for outgoing traffic, recurring RTCP, and stats (and optionally TWCC)

void* janus_handle::session

Opaque pointer to the core/peer session.

guint janus_handle::srtp_errors_count

Count of the recent SRTP replay errors, in order to avoid spamming the logs.

GSource * janus_handle::stats_source
guint janus_handle::stream_id

ICE Stream ID.

janus_text2pcap* janus_handle::text2pcap

In case this session must be saved to text2pcap, the instance to dump packets to.

GThread* janus_handle::thread

GLib thread for the handle and libnice.

GSource * janus_handle::twcc_source
janus_flags janus_handle::webrtc_flags

Mask of WebRTC-related flags for this handle.


The documentation for this struct was generated from the following file: