Mercurial > pidgin.yaz
comparison libpurple/network.h @ 21466:7a05b6f84545
Don't map the port used for bonjour file transfers externally. This adds a new function that will go away in 3.0.0 when we can modify purple_network_do_listen to take an additional parameter.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 13 Nov 2007 04:29:06 +0000 |
parents | 6bf32c9e15a7 |
children | af44492cdb95 |
comparison
equal
deleted
inserted
replaced
21465:e489c81e1f6f | 21466:7a05b6f84545 |
---|---|
103 * | 103 * |
104 * @param fd The fd to use to help figure out the IP, or -1. | 104 * @param fd The fd to use to help figure out the IP, or -1. |
105 * @return The local IP address to be used. | 105 * @return The local IP address to be used. |
106 */ | 106 */ |
107 const char *purple_network_get_my_ip(int fd); | 107 const char *purple_network_get_my_ip(int fd); |
108 | |
109 #ifndef PURPLE_DISABLE_DEPRECATED | |
110 /** | |
111 * Should calls to purple_network_listen() and purple_network_listen_range() | |
112 * map the port externally using NAT-PMP or UPnP? | |
113 * The default value is TRUE | |
114 * | |
115 * @param map_external Should the open port be mapped externally? | |
116 * @deprecated In 3.0.0 a boolean will be added to the above functions to | |
117 * perform the same function. | |
118 * @since 2.3.0 | |
119 */ | |
120 void purple_network_listen_map_external(gboolean map_external); | |
121 #endif | |
108 | 122 |
109 /** | 123 /** |
110 * Attempts to open a listening port ONLY on the specified port number. | 124 * Attempts to open a listening port ONLY on the specified port number. |
111 * You probably want to use purple_network_listen_range() instead of this. | 125 * You probably want to use purple_network_listen_range() instead of this. |
112 * This function is useful, for example, if you wanted to write a telnet | 126 * This function is useful, for example, if you wanted to write a telnet |