X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketHandle.cti;h=56c14729488a4fd2e1a62d2add7cb428dbef27cf;hb=9a988902090d28007578e93bffd809f6bd913155;hp=f573e4386244df5fca3676579964a11dd5e2d337;hpb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;p=senf.git diff --git a/Socket/SocketHandle.cti b/Socket/SocketHandle.cti index f573e43..56c1472 100644 --- a/Socket/SocketHandle.cti +++ b/Socket/SocketHandle.cti @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -20,7 +20,9 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Definition of inline template functions +/** \file + \brief SocketHandle inline template implementation + */ #include "SocketHandle.ih" @@ -49,7 +51,7 @@ senf::SocketHandle::operator=(SocketHandle other) } template -prefix_ +prefix_ senf::SocketHandle::SocketHandle(std::auto_ptr protocol, bool isServer) : FileHandle(std::auto_ptr(new SocketBody(protocol,isServer))) @@ -104,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); } @@ -158,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); } @@ -184,5 +191,8 @@ prefix_ senf::detail::ConvertibleString::ConvertibleString(T const & other) // Local Variables: // mode: c++ +// fill-column: 100 // c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: