X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocolClientSocketHandle.hh;h=ea00e04628073d1a3818353307c876bdc3dd16c1;hb=410b5d6536361b7a7376c38efee92263e793fea4;hp=f9e456de01c47557d9d151fc0bb403cbc2834ad5;hpb=85ab07d100a382467a42e19d741d403a7a96c951;p=senf.git diff --git a/Socket/ProtocolClientSocketHandle.hh b/Socket/ProtocolClientSocketHandle.hh index f9e456d..ea00e04 100644 --- a/Socket/ProtocolClientSocketHandle.hh +++ b/Socket/ProtocolClientSocketHandle.hh @@ -29,6 +29,7 @@ // Custom includes #include "ClientSocketHandle.hh" +#include "../config.hh" #include "ProtocolClientSocketHandle.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -65,6 +66,7 @@ namespace senf { // Types typedef SocketProtocol Protocol; ///< The sockets protocol + enum UninitializedType { Uninitialized }; ///< Flag to call 'uninitialized' constructor /////////////////////////////////////////////////////////////////////////// ///\name Structors and default members @@ -81,9 +83,20 @@ namespace senf { */ ProtocolClientSocketHandle(); -# define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 9, "Socket/ProtocolClientSocketHandle.mpp", 1)) +# define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 9, SENF_ABSOLUTE_INCLUDE_PATH(Socket/ProtocolClientSocketHandle.mpp), 1)) # include BOOST_PP_ITERATE() + /** \brief Create uninitialized socket variable + + This special constructor is called when passing + ProtocolClientSocketHandle::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. + */ + ProtocolClientSocketHandle(UninitializedType); + ///@} /////////////////////////////////////////////////////////////////////////// @@ -123,4 +136,6 @@ namespace senf { // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: