Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/libpurple/network.h Tue Nov 13 02:20:58 2007 +0000 +++ b/libpurple/network.h Tue Nov 13 04:29:06 2007 +0000 @@ -106,6 +106,20 @@ */ const char *purple_network_get_my_ip(int fd); +#ifndef PURPLE_DISABLE_DEPRECATED +/** + * Should calls to purple_network_listen() and purple_network_listen_range() + * map the port externally using NAT-PMP or UPnP? + * The default value is TRUE + * + * @param map_external Should the open port be mapped externally? + * @deprecated In 3.0.0 a boolean will be added to the above functions to + * perform the same function. + * @since 2.3.0 + */ +void purple_network_listen_map_external(gboolean map_external); +#endif + /** * Attempts to open a listening port ONLY on the specified port number. * You probably want to use purple_network_listen_range() instead of this.
