26#ifndef _PURPLE_PROXY_H_
27#define _PURPLE_PROXY_H_
61typedef struct _PurpleProxyConnectData PurpleProxyConnectData;
63typedef void (*PurpleProxyConnectFunction)(gpointer data, gint source,
const gchar *error_message);
257 const char *host,
int port,
258 PurpleProxyConnectFunction connect_cb, gpointer data);
286 const char *host,
int port,
287 PurpleProxyConnectFunction connect_cb, gpointer data);
316 const char *host,
int port,
317 PurpleProxyConnectFunction connect_cb, gpointer data);
319#if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_PROXY_C_)
344 const char *host,
int port,
345 PurpleProxyConnectFunction connect_cb, gpointer data);
364void purple_proxy_connect_cancel_with_handle(
void *handle);
void purple_global_proxy_set_info(PurpleProxyInfo *info)
Set purple's global proxy information.
const char * purple_proxy_info_get_username(const PurpleProxyInfo *info)
Returns the proxy's username.
void purple_proxy_info_set_port(PurpleProxyInfo *info, int port)
Sets the proxy port.
void purple_proxy_info_set_type(PurpleProxyInfo *info, PurpleProxyType type)
Sets the type of proxy.
void purple_proxy_info_set_password(PurpleProxyInfo *info, const char *password)
Sets the proxy password.
PurpleProxyInfo * purple_proxy_info_new(void)
Creates a proxy information structure.
PurpleProxyType
A type of proxy connection.
@ PURPLE_PROXY_SOCKS5
SOCKS 5 proxy.
@ PURPLE_PROXY_USE_ENVVAR
Use environmental settings.
@ PURPLE_PROXY_USE_GLOBAL
Use the global proxy information.
@ PURPLE_PROXY_TOR
Use a Tor proxy (SOCKS 5 really)
@ PURPLE_PROXY_NONE
No proxy.
@ PURPLE_PROXY_HTTP
HTTP proxy.
@ PURPLE_PROXY_SOCKS4
SOCKS 4 proxy.
void purple_proxy_info_set_username(PurpleProxyInfo *info, const char *username)
Sets the proxy username.
void purple_proxy_connect_cancel(PurpleProxyConnectData *connect_data)
Cancel an in-progress connection attempt.
const char * purple_proxy_info_get_password(const PurpleProxyInfo *info)
Returns the proxy's password.
PurpleProxyInfo * purple_proxy_get_setup(PurpleAccount *account)
Returns configuration of a proxy.
void purple_proxy_info_set_host(PurpleProxyInfo *info, const char *host)
Sets the proxy host.
PurpleProxyConnectData * purple_proxy_connect(void *handle, PurpleAccount *account, const char *host, int port, PurpleProxyConnectFunction connect_cb, gpointer data)
Makes a connection to the specified host and port.
void purple_proxy_info_destroy(PurpleProxyInfo *info)
Destroys a proxy information structure.
PurpleProxyConnectData * purple_proxy_connect_socks5(void *handle, PurpleProxyInfo *gpi, const char *host, int port, PurpleProxyConnectFunction connect_cb, gpointer data)
Makes a connection through a SOCKS5 proxy.
void purple_proxy_uninit(void)
Uninitializes the proxy subsystem.
void * purple_proxy_get_handle(void)
Returns the proxy subsystem handle.
PurpleProxyInfo * purple_global_proxy_get_info(void)
Returns purple's global proxy information.
PurpleProxyConnectData * purple_proxy_connect_socks5_account(void *handle, PurpleAccount *account, PurpleProxyInfo *gpi, const char *host, int port, PurpleProxyConnectFunction connect_cb, gpointer data)
Makes a connection through a SOCKS5 proxy.
PurpleProxyConnectData * purple_proxy_connect_udp(void *handle, PurpleAccount *account, const char *host, int port, PurpleProxyConnectFunction connect_cb, gpointer data)
Makes a connection to the specified host and port.
void purple_proxy_init(void)
Initializes the proxy subsystem.
const char * purple_proxy_info_get_host(const PurpleProxyInfo *info)
Returns the proxy's host.
int purple_proxy_info_get_port(const PurpleProxyInfo *info)
Returns the proxy's port.
PurpleProxyType purple_proxy_info_get_type(const PurpleProxyInfo *info)
Returns the proxy's type.
Information on proxy settings.
char * password
The password.
PurpleProxyType type
The proxy type.
char * username
The username.
Structure representing an account.