Mercurial > pidgin
diff libpurple/proxy.h @ 27089:4023cee127c6
merge of '67228440771b545dc01526f74fd7171a02fb5e08'
and '7d328b30bc18c77fc3de6e2870b9b576fac4ab1c'
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Tue, 09 Jun 2009 23:30:18 +0000 |
parents | 4c3b1bb3ba91 |
children | 9a7c5d242521 |
line wrap: on
line diff
--- a/libpurple/proxy.h Fri May 22 00:38:45 2009 +0000 +++ b/libpurple/proxy.h Tue Jun 09 23:30:18 2009 +0000 @@ -257,6 +257,35 @@ PurpleProxyConnectFunction connect_cb, gpointer data); /** + * Makes a connection to the specified host and port. Note that this + * function name can be misleading--although it is called "proxy + * connect," it is used for establishing any outgoing UDP connection, + * whether through a proxy or not. + * + * @param handle A handle that should be associated with this + * connection attempt. The handle can be used + * to cancel the connection attempt using the + * purple_proxy_connect_cancel_with_handle() + * function. + * @param account The account making the connection. + * @param host The destination host. + * @param port The destination port. + * @param connect_cb The function to call when the connection is + * established. If the connection failed then + * fd will be -1 and error message will be set + * to something descriptive (hopefully). + * @param data User-defined data. + * + * @return NULL if there was an error, or a reference to an + * opaque data structure that can be used to cancel + * the pending connection, if needed. + */ +PurpleProxyConnectData *purple_proxy_connect_udp(void *handle, + PurpleAccount *account, + const char *host, int port, + PurpleProxyConnectFunction connect_cb, gpointer data); + +/** * Makes a connection through a SOCKS5 proxy. * * @param handle A handle that should be associated with this