From 0e2a4a60e5af5c7d64127ce2a00586709963c1da Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 12 May 2010 15:00:09 -0500 Subject: [PATCH] Add camel_tcp_stream_set/get_socks_proxy() This will be the low-level function to set a SOCKS proxy for TCP streams. In subsequent commits we'll add the machinery to CamelSession et al to pass down the client's specified proxy into TCP streams. Signed-off-by: Federico Mena Quintero --- camel/camel-tcp-stream.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/camel/camel-tcp-stream.c b/camel/camel-tcp-stream.c index 171f427..a033254 100644 --- a/camel/camel-tcp-stream.c +++ b/camel/camel-tcp-stream.c @@ -170,3 +170,23 @@ camel_tcp_stream_get_remote_address (CamelTcpStream *stream, return class->get_remote_address (stream, len); } + +/** + * camel_tcp_stream_set_socks_proxy: + * @stream: a #CamelTcpStream object + * @socks_host: hostname to use for the SOCKS proxy + * @socks_port: port number to use for the SOCKS proxy + * + * Configures a SOCKS proxy for the specified @stream. Instead of direct connections, + * this @stream will instead go through the proxy. + * + * Since: 2.32 + */ +void +camel_tcp_stream_set_socks_proxy (CamelTcpStream *stream, const char *socks_host, int socks_port) +{ + g_return_if_fail (CAMEL_IS_TCP_STREAM (stream)); + + /* FIXME */ +} + -- 2.7.4