Fix TCPv6 SocketHandle and INet6Address
[senf.git] / Socket / TCPSocketHandle.hh
index f94e439..47163b0 100644 (file)
@@ -168,6 +168,7 @@ namespace senf {
           public BSDSocketProtocol,
           public AddressableBSDSocketProtocol
     {
+    public:
         ///////////////////////////////////////////////////////////////////////////
         // internal interface
 
@@ -178,7 +179,7 @@ namespace senf {
                                        /**< \note This member is implicitly called from the
                                             ProtocolClientSocketHandle::ProtocolClientSocketHandle()
                                             constructor */
-        void init_client(INet4Address const & address) const;
+        void init_client(INet6SocketAddress const & address) const;
                                         ///< Create client socket and connect
                                         /**< Creates a new client socket and connects to the given
                                             address. 
@@ -191,7 +192,7 @@ namespace senf {
                                        /**< \note This member is implicitly called from the
                                             ProtocolServerSocketHandle::ProtocolServerSocketHandle()
                                             constructor */
-        void init_server(INet4Address const & address, unsigned backlog=1) const;
+        void init_server(INet6SocketAddress const & address, unsigned backlog=1) const;
                                         ///< Create server socket and listen
                                         /**< Creates a new server socket, binds to \a address end
                                             starts listening for new connections with a backlog of