summaryrefslogtreecommitdiff
path: root/gio/gsocketclient.h
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2010-08-10 16:48:45 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2010-08-19 16:32:37 -0400
commita6c3820f46b9caabc45ab19aaf2669b4cb04c5d5 (patch)
tree22a3f91048e73f9949acfd19ecce486c9b1877ad /gio/gsocketclient.h
parentee3dbf747e48a41c916674f111906f57996fd626 (diff)
downloadglib-a6c3820f46b9caabc45ab19aaf2669b4cb04c5d5.tar.gz
Hooked proxy enumeration into GSocketClient
This functionnallity can be disabled using property enable-proxy. It enumerates addresses using GSocketConnectable::proxy_enumerate() instead of enumerate(). When the returned address is of type GProxyAddress (a type based on GInetSocketAddress), it gets the proxy protocol handler using g_proxy_get_default_for_protocol() and call connect() on it. Reviewed-by: Dan Winship <danw@gnome.org>
Diffstat (limited to 'gio/gsocketclient.h')
-rw-r--r--gio/gsocketclient.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/gsocketclient.h b/gio/gsocketclient.h
index df9f5a2d2..ace29af98 100644
--- a/gio/gsocketclient.h
+++ b/gio/gsocketclient.h
@@ -85,6 +85,9 @@ void g_socket_client_set_local_address (GSocket
guint g_socket_client_get_timeout (GSocketClient *client);
void g_socket_client_set_timeout (GSocketClient *client,
guint timeout);
+gboolean g_socket_client_get_enable_proxy (GSocketClient *client);
+void g_socket_client_set_enable_proxy (GSocketClient *client,
+ gboolean enable);
GSocketConnection * g_socket_client_connect (GSocketClient *client,
GSocketConnectable *connectable,