Mercurial > pidgin.yaz
comparison libpurple/proxy.h @ 29471:d83ee160ffb6
propagate from branch 'im.pidgin.pidgin' (head eb9385f349a20856b9d3f9911dbc8024caa44052)
to branch 'im.pidgin.pidgin.next.minor' (head 439fb2dd7a285d9ca645f65f36ef0f037abe7311)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 19 Aug 2009 00:46:04 +0000 |
parents | 4c3b1bb3ba91 |
children | 9a7c5d242521 |
comparison
equal
deleted
inserted
replaced
29470:7a3458436140 | 29471:d83ee160ffb6 |
---|---|
255 PurpleAccount *account, | 255 PurpleAccount *account, |
256 const char *host, int port, | 256 const char *host, int port, |
257 PurpleProxyConnectFunction connect_cb, gpointer data); | 257 PurpleProxyConnectFunction connect_cb, gpointer data); |
258 | 258 |
259 /** | 259 /** |
260 * Makes a connection to the specified host and port. Note that this | |
261 * function name can be misleading--although it is called "proxy | |
262 * connect," it is used for establishing any outgoing UDP connection, | |
263 * whether through a proxy or not. | |
264 * | |
265 * @param handle A handle that should be associated with this | |
266 * connection attempt. The handle can be used | |
267 * to cancel the connection attempt using the | |
268 * purple_proxy_connect_cancel_with_handle() | |
269 * function. | |
270 * @param account The account making the connection. | |
271 * @param host The destination host. | |
272 * @param port The destination port. | |
273 * @param connect_cb The function to call when the connection is | |
274 * established. If the connection failed then | |
275 * fd will be -1 and error message will be set | |
276 * to something descriptive (hopefully). | |
277 * @param data User-defined data. | |
278 * | |
279 * @return NULL if there was an error, or a reference to an | |
280 * opaque data structure that can be used to cancel | |
281 * the pending connection, if needed. | |
282 */ | |
283 PurpleProxyConnectData *purple_proxy_connect_udp(void *handle, | |
284 PurpleAccount *account, | |
285 const char *host, int port, | |
286 PurpleProxyConnectFunction connect_cb, gpointer data); | |
287 | |
288 /** | |
260 * Makes a connection through a SOCKS5 proxy. | 289 * Makes a connection through a SOCKS5 proxy. |
261 * | 290 * |
262 * @param handle A handle that should be associated with this | 291 * @param handle A handle that should be associated with this |
263 * connection attempt. The handle can be used | 292 * connection attempt. The handle can be used |
264 * to cancel the connection attempt using the | 293 * to cancel the connection attempt using the |