Get rid of obsolete StateMapOrdering for SocketHandle::dumpState
[senf.git] / Socket / ProtocolServerSocketHandle.hh
index c4bc01a..af6db47 100644 (file)
@@ -69,6 +69,7 @@ namespace senf {
         // Types
 
         typedef SocketProtocol Protocol; ///< The socket protocol
+        enum UninitializedType { Uninitialized }; ///< Flag to call 'uninitialized' constructor
 
         ///////////////////////////////////////////////////////////////////////////
         ///\name Structors and default members
@@ -89,6 +90,16 @@ namespace senf {
 #       define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 9, "Socket/ProtocolServerSocketHandle.mpp", 1))
 #       include BOOST_PP_ITERATE()
 
+        /** \brief Create uninitialized socket variable
+
+            This special constructor is called when passing
+            ProtocolServerSocketHandle::Uninitialized as only argument to the constructor. This will
+            create an in-\ref valid() socket handle which can however be assigned later with another
+            socket instance.
+
+            \implementation The socket handle will have no \c body allocated.
+         */
+        ProtocolServerSocketHandle(UninitializedType);
         ///@}
         ///////////////////////////////////////////////////////////////////////////