# HG changeset patch # User David Demelier # Date 1445543021 -7200 # Node ID 5f837e40b56955e6aa01a37e7594658d3a715084 # Parent 378699c812574cada6206b1a074b52428883da1f Socket: cosmetic diff -r 378699c81257 -r 5f837e40b569 C++/modules/Socket/Sockets.h --- a/C++/modules/Socket/Sockets.h Thu Oct 22 21:38:28 2015 +0200 +++ b/C++/modules/Socket/Sockets.h Thu Oct 22 21:43:41 2015 +0200 @@ -905,9 +905,9 @@ * Predefine addressed to be used * ------------------------------------------------------------------ * - * - Ipv6 - * - Ipv4 - * - Local + * - Ipv6, + * - Ipv4, + * - Local. */ /* {{{ Addresses */ @@ -1135,8 +1135,9 @@ * Predefined types * ------------------------------------------------------------------ * - * - Tcp, for standard stream connections - * - Udp, for standard datagram connection + * - Tcp, for standard stream connections, + * - Udp, for standard datagram connections, + * - Tls, for secure stream connections. */ /* {{{ Types */ @@ -1454,6 +1455,8 @@ /* }}} */ +/* {{{ Tls */ + #if !defined(SOCKET_NO_SSL) /** @@ -1566,10 +1569,10 @@ template void connect(Socket &sc, const Address &address) { - // 1. Standard connect + /* 1. Standard connect */ Tcp::connect(sc.handle(), address.address(), address.length()); - // 2. OpenSSL handshake + /* 2. OpenSSL handshake */ auto ret = SSL_connect(m_ssl.get()); if (ret <= 0) { @@ -1687,12 +1690,15 @@ /* }}} */ +/* }}} */ + /* * Convenient helpers * ------------------------------------------------------------------ * * - SocketTcp
, for TCP sockets, - * - SocketUdp
, for UDP sockets + * - SocketUdp
, for UDP sockets, + * - SocketTls
, for secure TCP sockets. */ /* {{{ Helpers */