libpurple/proxy.h

changeset 40610
ea68b8867179
parent 40474
1341be8e3402
child 40654
ce30656a8486
equal deleted inserted replaced
40609:42456b38da44 40610:ea68b8867179
286 PurpleAccount *account, 286 PurpleAccount *account,
287 const char *host, int port, 287 const char *host, int port,
288 PurpleProxyConnectFunction connect_cb, gpointer data); 288 PurpleProxyConnectFunction connect_cb, gpointer data);
289 289
290 /** 290 /**
291 * purple_proxy_connect_socks5_account: (skip)
292 * @handle: A handle that should be associated with this
293 * connection attempt. The handle can be used
294 * to cancel the connection attempt using the
295 * purple_proxy_connect_cancel_with_handle()
296 * function.
297 * @account: The account making the connection.
298 * @gpi: The PurpleProxyInfo specifying the proxy settings
299 * @host: The destination host.
300 * @port: The destination port.
301 * @connect_cb: (scope call): The function to call when the connection is
302 * established. If the connection failed then
303 * fd will be -1 and error message will be set
304 * to something descriptive (hopefully).
305 * @data: User-defined data.
306 *
307 * Makes a connection through a SOCKS5 proxy.
308 *
309 * Note that if the account that is making the connection uses a proxy, this
310 * connection to a SOCKS5 proxy will be made through the account proxy.
311 *
312 * Returns: NULL if there was an error, or a reference to an
313 * opaque data structure that can be used to cancel
314 * the pending connection, if needed.
315 */
316 PurpleProxyConnectData *purple_proxy_connect_socks5_account(void *handle,
317 PurpleAccount *account, PurpleProxyInfo *gpi,
318 const char *host, int port,
319 PurpleProxyConnectFunction connect_cb, gpointer data);
320
321 /**
322 * purple_proxy_connect_cancel: (skip) 291 * purple_proxy_connect_cancel: (skip)
323 * @connect_data: The #PurpleProxyConnectData to cancel. 292 * @connect_data: The #PurpleProxyConnectData to cancel.
324 * 293 *
325 * Cancel an in-progress connection attempt. This should be called 294 * Cancel an in-progress connection attempt. This should be called
326 * by the protocol if the user disables an account while it is still 295 * by the protocol if the user disables an account while it is still

mercurial