: 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>