X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketHandle.cti;h=4d03d6768277b89ead9be3c062d7d0fa89e637c0;hb=a4911c1fd3f53dc2a7bda6c1d2b00bdc4b864cff;hp=e93ec630b939fec3d6dd2b5fb08d93fcc5754a2d;hpb=70256cc93f59f5d2c9b3428775a181e5e225bfc5;p=senf.git diff --git a/Socket/SocketHandle.cti b/Socket/SocketHandle.cti index e93ec63..4d03d67 100644 --- a/Socket/SocketHandle.cti +++ b/Socket/SocketHandle.cti @@ -21,7 +21,7 @@ // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /** \file - \brief senf::SocketHandle inline template implementation + \brief SocketHandle inline template implementation */ #include "SocketHandle.ih" @@ -106,7 +106,7 @@ senf::SocketHandle::cast_dynamic(FileHandle handle) { // throws bad_cast if the body is not a SocketBody SocketBody & body (dynamic_cast(FileHandle::body(handle))); - // throws bad_cast if the poplicy is not compatible + // throws bad_cast if the policy is not compatible SocketPolicy::checkBaseOf(body.protocol().policy()); return cast_static(handle); } @@ -160,6 +160,11 @@ prefix_ bool senf::check_socket_cast(Source handle) template prefix_ void senf::SocketHandle::state(SocketStateMap & map, unsigned lod) { + // We use typeid here even though the type of *this is static + // (SocketHandle is not polymorphic and has no vtable). This will + // automatically include the SocketPolicy template parameter in + // the type name and therefore show the \e static policy of the + // socket handle. map["handle"] = prettyName(typeid(*this)); body().state(map,lod); }