comparison src/proxy.h @ 14103:eec0c7fd8529

[gaim-migrate @ 16734] gaim_proxy_connect()ion attemps can now be canceled. So there is no longer a need to do that GAIM_CONNECTION_IS_VALID() crap at the top of gaim_proxy_connect() callback functions. All of the callers of gaim_proxy_connect() still need to be updated, though. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 13 Aug 2006 08:38:02 +0000
parents 983fbec46eb0
children 7a205b430d19
comparison
equal deleted inserted replaced
14102:14e14f1ef1d8 14103:eec0c7fd8529
269 const char *host, int port, 269 const char *host, int port,
270 GaimProxyConnectFunction connect_cb, 270 GaimProxyConnectFunction connect_cb,
271 GaimProxyErrorFunction error_cb, gpointer data); 271 GaimProxyErrorFunction error_cb, gpointer data);
272 272
273 /** 273 /**
274 * Cancel an in-progress connection attempt. This should be called
275 * by the PRPL if the user disables an account while it is still
276 * performing the initial sign on. Or when establishing a file
277 * transfer, if we attempt to connect to a remote user but they
278 * are behind a firewall then the PRPL can cancel the connection
279 * attempt early rather than just letting the OS's TCP/IP stack
280 * time-out the connection.
281 */
282 void gaim_proxy_connect_cancel(GaimProxyConnectInfo *connect_info);
283
284 /**
274 * Do an async dns query 285 * Do an async dns query
275 * 286 *
276 * @param hostname The hostname to resolve 287 * @param hostname The hostname to resolve
277 * @param port A portnumber which is stored in the struct sockaddr 288 * @param port A portnumber which is stored in the struct sockaddr
278 * @param callback Callback to call after resolving 289 * @param callback Callback to call after resolving