X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocolServerSocketHandle.cti;h=26c2b696551c22789436a927251eb4b0d839201c;hb=d5a72d0b3f6fee56dba6de1c54cafb448ebe3457;hp=e27a8e518e7e846a0ab4719895f6c83cf7cb8661;hpb=6f50bf49e282c0528f51faa0a245bbfa2b867399;p=senf.git diff --git a/Socket/ProtocolServerSocketHandle.cti b/Socket/ProtocolServerSocketHandle.cti index e27a8e5..26c2b69 100644 --- a/Socket/ProtocolServerSocketHandle.cti +++ b/Socket/ProtocolServerSocketHandle.cti @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -50,13 +50,13 @@ prefix_ senf::ProtocolServerSocketHandle::ProtocolServerSocketHa #include BOOST_PP_ITERATE() template -prefix_ SocketProtocol const & +prefix_ SocketProtocol & senf::ProtocolServerSocketHandle::protocol() { SENF_ASSERT( dynamic_cast(&this->body().protocol()) ); // Need dynamic_cast here, since senf::SocketProtocol is a // virtual base - return dynamic_cast(this->body().protocol()); + return dynamic_cast(this->body().protocol()); } template @@ -91,7 +91,11 @@ senf::ProtocolServerSocketHandle::state(SocketStateMap & map, unsigned lod) { map["handle"] = prettyName(typeid(*this)); - this->body().state(map,lod); + if (this->valid()) { + map["valid"] << "true"; + this->body().state(map,lod); + } else + map["valid"] << "false"; } template