diff libpurple/network.h @ 29101:02f6f49da454

Add a function to enumerate all local IPs Adapted the XMPP prpl to include all local IPs as local streamhosts. I haven't had the chance to test if this actually works using a "non-default" interface, such as a VPN connection... Refs #10160
author Marcus Lundblad <ml@update.uu.se>
date Wed, 09 Sep 2009 19:01:03 +0000
parents c55bba399426
children f1aa01ff26dd
line wrap: on
line diff
--- a/libpurple/network.h	Fri Sep 04 03:04:33 2009 +0000
+++ b/libpurple/network.h	Wed Sep 09 19:01:03 2009 +0000
@@ -88,6 +88,16 @@
 const char *purple_network_get_local_system_ip(int fd);
 
 /**
+ * Returns all IP addresses of the local system.
+ *
+ * @note The caller must free this list
+ *
+ * @param fd The fd to use to help figure out the IPs, or else -1.
+ * @return A list of local IP addresses.
+ */
+GList *purple_network_get_all_local_system_ips(int fd);
+
+/**
  * Returns the IP address that should be used anywhere a
  * public IP addresses is needed (listening for an incoming
  * file transfer, etc).