aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-tcp-stream.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-07-31 09:03:10 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-07-31 09:03:10 +0800
commit8137a35173541e4a5a3ed180b6493f2166d08ac1 (patch)
treed4d0070718afbcc8375585429f55c08a7160017e /camel/camel-tcp-stream.c
parent61d063ada03ee98f167197b4d067c568232ace24 (diff)
downloadgsoc2013-evolution-8137a35173541e4a5a3ed180b6493f2166d08ac1.tar.gz
gsoc2013-evolution-8137a35173541e4a5a3ed180b6493f2166d08ac1.tar.zst
gsoc2013-evolution-8137a35173541e4a5a3ed180b6493f2166d08ac1.zip
Update the comment.
2002-07-30 Jeffrey Stedfast <fejj@ximian.com> * camel-tcp-stream.c (camel_tcp_address_new): Update the comment. * camel-tcp-stream-raw.c (socket_connect): If building with IPv6 support and the address is an IPv6 address, connect using a sockaddr_in6 otherwise use the standard IPv4 sockaddr_in structure. (stream_get_local_address): Fix to work with IPv6 addresses. (stream_get_remote_address): Same. * camel-tcp-stream-openssl.c (socket_connect): Same as above. (stream_get_local_address): Fix to work with IPv6 addresses. (stream_get_remote_address): Same. * camel-tcp-stream-ssl.c (stream_connect): If building with IPv6 support and the address is an IPv6 address, initialise the PRNetAddr accordingly. (stream_get_local_address): Fix to work with IPv6 addresses. (stream_get_remote_address): Same. svn path=/trunk/; revision=17651
Diffstat (limited to 'camel/camel-tcp-stream.c')
-rw-r--r--camel/camel-tcp-stream.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/camel/camel-tcp-stream.c b/camel/camel-tcp-stream.c
index 78a7c4551c..fbbcbec451 100644
--- a/camel/camel-tcp-stream.c
+++ b/camel/camel-tcp-stream.c
@@ -213,7 +213,7 @@ camel_tcp_stream_get_remote_address (CamelTcpStream *stream)
/**
* camel_tcp_address_new:
- * @family: the address family (currently must be CAMEL_TCP_ADDRESS_IPV4)
+ * @family: the address family
* @port: the port number (in network byte order)
* @length: the length of @address
* @address: the address data (family dependent, in network byte order)
@@ -221,20 +221,21 @@ camel_tcp_stream_get_remote_address (CamelTcpStream *stream)
* Return value: a new CamelTcpAddress.
**/
CamelTcpAddress *
-camel_tcp_address_new (CamelTcpAddressFamily family, gushort port,
- gushort length, gpointer address)
+camel_tcp_address_new (CamelTcpAddressFamily family, gushort port,
+ gushort length, gpointer address)
{
CamelTcpAddress *addr;
-
+
addr = g_malloc (sizeof (CamelTcpAddress) + length - 1);
addr->family = family;
- addr->port = port;
+ addr->port = port;
addr->length = length;
memcpy (&addr->address, address, length);
-
+
return addr;
}
+
/**
* camel_tcp_address_free:
* @address: the address