diff options
author | Philippe Normand <philn@igalia.com> | 2022-05-05 17:27:33 +0100 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2022-05-09 13:39:14 -0400 |
commit | ff9ee9912fafab3bb0dd069f7407ea20001c264c (patch) | |
tree | fd6f4539ae710b3712c64f2836a2171952f38371 /agent/candidate-priv.h | |
parent | 1f54424d506f0e454816472b27092214dc8f4dd8 (diff) | |
download | libnice-ff9ee9912fafab3bb0dd069f7407ea20001c264c.tar.gz |
candidate: Add utility function to get STUN server address
Can be useful to know which STUN server was used to discover the given candidate.
Diffstat (limited to 'agent/candidate-priv.h')
-rw-r--r-- | agent/candidate-priv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/agent/candidate-priv.h b/agent/candidate-priv.h index 51cb806..e6e2529 100644 --- a/agent/candidate-priv.h +++ b/agent/candidate-priv.h @@ -105,6 +105,8 @@ struct _TurnServer * of type %NICE_CANDIDATE_TYPE_RELAYED * @sockptr: The underlying socket * @keepalive_next_tick: The timestamp for the next keepalive + * @stun_server: The STUN server address, if the candidate is + * of type %NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE * * A structure to represent an ICE candidate */ @@ -114,6 +116,7 @@ struct _NiceCandidateImpl TurnServer *turn; NiceSocket *sockptr; guint64 keepalive_next_tick; /* next tick timestamp */ + NiceAddress *stun_server; }; |