Top |
Types and Values
struct | NiceCandidate |
enum | NiceCandidateType |
enum | NiceCandidateTransport |
struct | TurnServer |
enum | NiceRelayType |
#define | NICE_CANDIDATE_MAX_FOUNDATION |
Object Hierarchy
GBoxed ╰── NiceCandidate GEnum ├── NiceCandidateTransport ├── NiceCandidateType ╰── NiceRelayType
Description
A representation of an ICE candidate. Make sure you read the ICE drafts[1] to understand correctly the concept of ICE candidates.
[1] http://tools.ietf.org/wg/mmusic/draft-ietf-mmusic-ice/
Functions
nice_candidate_new ()
NiceCandidate *
nice_candidate_new (NiceCandidateType type
);
Creates a new candidate. Must be freed with nice_candidate_free()
nice_candidate_copy ()
NiceCandidate *
nice_candidate_copy (const NiceCandidate *candidate
);
Makes a copy of a NiceCandidate
nice_candidate_equal_target ()
gboolean nice_candidate_equal_target (const NiceCandidate *candidate1
,const NiceCandidate *candidate2
);
Verifies that the candidates point to the same place, meaning they have the same transport and the same address. It ignores all other aspects.
Since: 0.1.15
Types and Values
struct NiceCandidate
struct NiceCandidate { NiceCandidateType type; NiceCandidateTransport transport; NiceAddress addr; NiceAddress base_addr; guint32 priority; guint stream_id; guint component_id; gchar foundation[NICE_CANDIDATE_MAX_FOUNDATION]; gchar *username; /* pointer to a nul-terminated username string */ gchar *password; /* pointer to a nul-terminated password string */ TurnServer *turn; gpointer sockptr; };
A structure to represent an ICE candidate
The priority
is an integer as specified in the ICE draft 19. If you are
using the MSN or the GOOGLE compatibility mode (which are based on ICE
draft 6, which uses a floating point qvalue as priority), then the priority
value will represent the qvalue multiplied by 1000.
Members
NiceCandidateType |
The type of candidate |
|
NiceCandidateTransport |
The transport being used for the candidate |
|
NiceAddress |
The NiceAddress of the candidate |
|
NiceAddress |
The NiceAddress of the base address used by the candidate |
|
guint32 |
The priority of the candidate see note |
|
guint |
The ID of the stream to which belongs the candidate |
|
guint |
The ID of the component to which belongs the candidate |
|
gchar |
The foundation of the candidate |
|
gchar * |
The candidate-specific username to use (overrides the one set
by |
|
gchar * |
The candidate-specific password to use (overrides the one set
by |
|
TurnServer * |
The TurnServer settings if the candidate is
of type |
|
gpointer |
The underlying socket |
struct TurnServer
struct TurnServer { gint ref_count; NiceAddress server; gchar *username; gchar *password; NiceRelayType type; };
A structure to store the TURN relay settings
Members
gint |
Reference count for the structure. |
|
NiceAddress |
The NiceAddress of the TURN server |
|
gchar * |
The TURN username |
|
gchar * |
The TURN password |
|
NiceRelayType |
The NiceRelayType of the server |