[evolution-data-server] Add camel_tcp_stream_set/get_socks_proxy()
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Add camel_tcp_stream_set/get_socks_proxy()
- Date: Wed, 2 Jun 2010 22:49:23 +0000 (UTC)
commit 0e2a4a60e5af5c7d64127ce2a00586709963c1da
Author: Federico Mena Quintero <federico novell com>
Date: Wed May 12 15:00:09 2010 -0500
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 <federico novell com>
camel/camel-tcp-stream.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
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 */
+}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]