#include <glib.h>
#include "eventloop.h"
#include "account.h"
Include dependency graph for proxy.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | PurpleProxyInfo |
Information on proxy settings. More... | |
Proxy structure API | |
PurpleProxyInfo * | purple_proxy_info_new (void) |
Creates a proxy information structure. | |
void | purple_proxy_info_destroy (PurpleProxyInfo *info) |
Destroys a proxy information structure. | |
void | purple_proxy_info_set_type (PurpleProxyInfo *info, PurpleProxyType type) |
Sets the type of proxy. | |
void | purple_proxy_info_set_host (PurpleProxyInfo *info, const char *host) |
Sets the proxy host. | |
void | purple_proxy_info_set_port (PurpleProxyInfo *info, int port) |
Sets the proxy port. | |
void | purple_proxy_info_set_username (PurpleProxyInfo *info, const char *username) |
Sets the proxy username. | |
void | purple_proxy_info_set_password (PurpleProxyInfo *info, const char *password) |
Sets the proxy password. | |
PurpleProxyType | purple_proxy_info_get_type (const PurpleProxyInfo *info) |
Returns the proxy's type. | |
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. | |
const char * | purple_proxy_info_get_username (const PurpleProxyInfo *info) |
Returns the proxy's username. | |
const char * | purple_proxy_info_get_password (const PurpleProxyInfo *info) |
Returns the proxy's password. | |
Global Proxy API | |
PurpleProxyInfo * | purple_global_proxy_get_info (void) |
Returns purple's global proxy information. | |
Proxy API | |
void * | purple_proxy_get_handle (void) |
Returns the proxy subsystem handle. | |
void | purple_proxy_init (void) |
Initializes the proxy subsystem. | |
void | purple_proxy_uninit (void) |
Uninitializes the proxy subsystem. | |
PurpleProxyInfo * | purple_proxy_get_setup (PurpleAccount *account) |
Returns configuration of a proxy. | |
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. | |
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_connect_cancel (PurpleProxyConnectData *connect_data) |
Cancel an in-progress connection attempt. | |
void | purple_proxy_connect_cancel_with_handle (void *handle) |
Typedefs | |
typedef _PurpleProxyConnectData | PurpleProxyConnectData |
typedef void(* | PurpleProxyConnectFunction )(gpointer data, gint source, const gchar *error_message) |
Enumerations | |
enum | PurpleProxyType { PURPLE_PROXY_USE_GLOBAL = -1, PURPLE_PROXY_NONE = 0, PURPLE_PROXY_HTTP, PURPLE_PROXY_SOCKS4, PURPLE_PROXY_SOCKS5, PURPLE_PROXY_USE_ENVVAR } |
A type of proxy connection. More... |
Definition in file proxy.h.
|
A type of proxy connection.
|
|
Returns purple's global proxy information.
|
|
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 TCP connection, whether through a proxy or not.
|
|
Cancel an in-progress connection attempt. This should be called by the PRPL if the user disables an account while it is still performing the initial sign on. Or when establishing a file transfer, if we attempt to connect to a remote user but they are behind a firewall then the PRPL can cancel the connection attempt early rather than just letting the OS's TCP/IP stack time-out the connection. |
|
Makes a connection through a SOCKS5 proxy.
|
|
Returns the proxy subsystem handle.
|
|
Returns configuration of a proxy.
|
|
Destroys a proxy information structure.
|
|
Returns the proxy's host.
|
|
Returns the proxy's password.
|
|
Returns the proxy's port.
|
|
Returns the proxy's type.
|
|
Returns the proxy's username.
|
|
Creates a proxy information structure.
|
|
Sets the proxy host.
|
|
Sets the proxy password.
|
|
Sets the proxy port.
|
|
Sets the type of proxy.
|
|
Sets the proxy username.
|