summaryrefslogtreecommitdiff
path: root/agent/discovery.h
diff options
context:
space:
mode:
authorKai Vehmanen <first.surname@nokia.com>2007-06-19 08:06:00 +0000
committerKai Vehmanen <first.surname@nokia.com>2007-06-19 08:06:00 +0000
commit181d9d56df9332544f72a856e51cff62f45a15ad (patch)
tree3d42a16ed0bd2ec9f98eac0645494110e1852adf /agent/discovery.h
parent99ff130b9bc44c75a30ee60078d1548d61f99270 (diff)
downloadlibnice-181d9d56df9332544f72a856e51cff62f45a15ad.tar.gz
Major NICE agent update. Added supprt for peer-reflexive candidates, media keepalives, candidate keepalives, role conflict tie-breaking functionality, and for triggered checks. Added NICEAPI_EXPORT attributes to public functions. Includes numerous bugfixes to existing functionality.
darcs-hash:20070619080609-77cd4-d18bf44fe48a201e59556ae5a9dff2b5a2e7e073.gz
Diffstat (limited to 'agent/discovery.h')
-rw-r--r--agent/discovery.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/agent/discovery.h b/agent/discovery.h
index 1fb18be..a30ae53 100644
--- a/agent/discovery.h
+++ b/agent/discovery.h
@@ -50,6 +50,7 @@ struct _CandidateDiscovery
guint socket; /**< XXX: should be taken from local cand: existing socket to use */
NiceUDPSocket *nicesock; /**< XXX: should be taken from local cand: existing socket to use */
const gchar *server_addr; /**< STUN/TURN server address, not owned */
+ guint server_port; /**< STUN/TURN server port */
NiceAddress *interface; /**< Address of local interface */
stun_bind_t *stun_ctx;
GTimeVal next_tick; /**< next tick timestamp */
@@ -64,7 +65,8 @@ void discovery_free (NiceAgent *agent);
gboolean discovery_prune_stream (NiceAgent *agent, guint stream_id);
void discovery_schedule (NiceAgent *agent);
-NiceCandidate *discovery_add_local_host_candidate (
+NiceCandidate *
+discovery_add_local_host_candidate (
NiceAgent *agent,
guint stream_id,
guint component_id,
@@ -78,4 +80,21 @@ discovery_add_server_reflexive_candidate (
NiceAddress *address,
NiceUDPSocket *base_socket);
+NiceCandidate*
+discovery_add_peer_reflexive_candidate (
+ NiceAgent *agent,
+ guint stream_id,
+ guint component_id,
+ NiceAddress *address,
+ NiceUDPSocket *base_socket);
+
+NiceCandidate *
+discovery_learn_remote_peer_reflexive_candidate (
+ NiceAgent *agent,
+ Stream *stream,
+ Component *component,
+ guint32 priority,
+ const NiceAddress *remote_address,
+ NiceUDPSocket *udp_socket);
+
#endif /*_NICE_CONNCHECK_H */