X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketHandle.hh;h=867d0aad421708dbbdadd42adf0e007d4a2a95a1;hb=3cb0a2ff50b8f1111da34b696e64fb1b037cd683;hp=6d36be8c225dd3951c65a0400d02dbaa928cc197;hpb=2cf8d7ad86c57dd87314c1ea7bf980a189d48552;p=senf.git diff --git a/Socket/SocketHandle.hh b/Socket/SocketHandle.hh index 6d36be8..867d0aa 100644 --- a/Socket/SocketHandle.hh +++ b/Socket/SocketHandle.hh @@ -147,6 +147,16 @@ namespace senf { every derived class. See the state() documentation. */ + template + Facet const & facet(); ///< Access a protocol facet + /**< This member will try to access the given protocol facet + of the socket. If \a Facet is a valid facet of the + protocol, it is returned, otherwise \c std::bad_cast + will be thrown. + \throws std::bad_cast if \a Facet is not a protocol + facet of this socket + \returns the \a Facet protocol facet of this socket */ + protected: explicit SocketHandle(std::auto_ptr body); ///< Initialize SocketHandle providing the protocol