summaryrefslogtreecommitdiff
path: root/agent/candidate-priv.h
diff options
context:
space:
mode:
authorPhilippe Normand <philn@igalia.com>2022-05-05 17:27:33 +0100
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>2022-05-09 13:39:14 -0400
commitff9ee9912fafab3bb0dd069f7407ea20001c264c (patch)
treefd6f4539ae710b3712c64f2836a2171952f38371 /agent/candidate-priv.h
parent1f54424d506f0e454816472b27092214dc8f4dd8 (diff)
downloadlibnice-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.h3
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;
};