21 #ifndef G_DESCRIPTOR_H
22 #define G_DESCRIPTOR_H
74 return m_fd == other.m_fd ;
80 return m_fd < other.m_fd ;
86 std::ostream & operator<<( std::ostream & stream ,
const Descriptor & d )
static Descriptor invalid()
Returns an invalid descriptor.
bool operator==(const Descriptor &other) const
Comparison operator.
bool operator<(const Descriptor &other) const
Comparison operator.
A class that encapsulates a network file descriptor and hides knowledge of its o/s-spefific error val...
SOCKET fd() const
Returns the low-level descriptor.
Descriptor()
Default constructor.
bool valid() const
Returns true if the descriptor is valid.