18 #ifndef HH_SENF_Socket_SocketHandle_ 19 #define HH_SENF_Socket_SocketHandle_ 1 25 #include <senf/Utils/Cpp11Support/smart_ptr.hh> 59 template <
class SPolicy>
75 template <
class OtherPolicy>
77 :
public boost::enable_if< SocketPolicyIsBaseOf<Policy,OtherPolicy>, SocketHandle >
94 template <
class OtherPolicy>
103 template <
class OtherPolicy>
108 void state(SocketStateMap & map,
unsigned lod=0);
141 template <
class Facet>
180 SocketBody
const &
body()
const;
205 template <
class SPolicy>
206 std::ostream & operator<<(std::ostream & os, SocketHandle<SPolicy> handle);
225 template <
class Target,
class Source>
237 template <
class Target,
class Source>
250 template <
class Target,
class Source>
Facet & facet()
Access a protocol facet.
static SocketHandle cast_static(FileHandle handle)
bool check_socket_cast(Source handle)
dynamically check cast validity
Policy Framework public header.
Socket Protocol base class.
Basic file handle wrapper.
IsCompatible< OtherPolicy >::type const & operator=(SocketHandle< OtherPolicy > other)
Assign from other socket handle checking policy compatibility.
std::string dumpState(unsigned lod=0)
Format complete state information as string.
basic SocketHandle supporting protocol and policy abstraction
SocketBody & body()
Access socket body.
Target dynamic_socket_cast(Source handle)
dynamic socket (down-)cast
SocketProtocol & protocol() const
Access protocol class.
FileHandle public header.
Check policy compatibility.
void assign(FileHandle other)
Target static_socket_cast(Source handle)
static socket (down-)cast
static SocketHandle cast_dynamic(FileHandle handle)
void state(SocketStateMap &map, unsigned lod=0)
Inquire state information of socket handle.