diff libpurple/network.h @ 26055:c56e8826fed0

Added support to generate relayed candidates (TURN). Added prefs setting for relay server in Pidgin
author Marcus Lundblad <ml@update.uu.se>
date Thu, 22 Jan 2009 23:04:52 +0000
parents ae3d25465d0f
children ff4212a5268f
line wrap: on
line diff
--- a/libpurple/network.h	Mon Jan 19 10:47:12 2009 +0000
+++ b/libpurple/network.h	Thu Jan 22 23:04:52 2009 +0000
@@ -215,7 +215,7 @@
 void *purple_network_get_handle(void);
 
 /**	
- * Update the STUN server name
+ * Update the STUN server IP given the host name
  * Will result in a DNS query being executed asynchronous
  * 
  * @param stun_server The host name of the STUN server to set
@@ -229,6 +229,22 @@
  */
 const gchar *purple_network_get_stun_ip(void);
 	
+/**	
+ * Update the TURN server IP given the host name
+ * Will result in a DNS query being executed asynchronous
+ * 
+ * @param stun_server The host name of the STUN server to set
+ */
+void purple_network_set_turn_server(const gchar *stun_server);
+	
+/**
+ * Get the IP address of the STUN server as a string representation
+ *
+ * @return the IP address
+ */
+const gchar *purple_network_get_turn_ip(void);
+		
+	
 /**
  * Initializes the network subsystem.
  */