#include "SocketHandle.ih"
// Custom includes
-#include "../Utils/senfassert.hh"
#include <typeinfo>
-#include <boost/lexical_cast.hpp>
+#include "../Utils/senfassert.hh"
#include "../Utils/TypeInfo.hh"
#define prefix_ inline
: FileHandle(other)
{
SENF_ASSERT( isChecked );
- SENF_ASSERT( dynamic_cast<SocketBody *>(&FileHandle::body()) );
+ SENF_ASSERT( ! valid() || dynamic_cast<SocketBody *>(&FileHandle::body()) );
}
template <class SPolicy>
// the type name and therefore show the \e static policy of the
// socket handle.
map["handle"] << prettyName(typeid(*this));
- body().state(map,lod);
+ if (valid()) {
+ map["valid"] << "true";
+ body().state(map,lod);
+ } else
+ map["valid"] << "false";
}
template <class SPolicy>