comparison 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
comparison
equal deleted inserted replaced
29100:d6dff41a6d4c 29101:02f6f49da454
84 * 84 *
85 * @param fd The fd to use to help figure out the IP, or else -1. 85 * @param fd The fd to use to help figure out the IP, or else -1.
86 * @return The local IP address. 86 * @return The local IP address.
87 */ 87 */
88 const char *purple_network_get_local_system_ip(int fd); 88 const char *purple_network_get_local_system_ip(int fd);
89
90 /**
91 * Returns all IP addresses of the local system.
92 *
93 * @note The caller must free this list
94 *
95 * @param fd The fd to use to help figure out the IPs, or else -1.
96 * @return A list of local IP addresses.
97 */
98 GList *purple_network_get_all_local_system_ips(int fd);
89 99
90 /** 100 /**
91 * Returns the IP address that should be used anywhere a 101 * Returns the IP address that should be used anywhere a
92 * public IP addresses is needed (listening for an incoming 102 * public IP addresses is needed (listening for an incoming
93 * file transfer, etc). 103 * file transfer, etc).