VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GNet::Descriptor Class Reference

A class that encapsulates a network file descriptor and hides knowledge of its o/s-spefific error value. More...

#include <gdescriptor.h>

Public Member Functions

 Descriptor ()
 Default constructor.
 
 Descriptor (SOCKET)
 Constructor.
 
bool valid () const
 Returns true if the descriptor is valid.
 
SOCKET fd () const
 Returns the low-level descriptor.
 
bool operator== (const Descriptor &other) const
 Comparison operator.
 
bool operator< (const Descriptor &other) const
 Comparison operator.
 

Static Public Member Functions

static Descriptor invalid ()
 Returns an invalid descriptor.
 

Detailed Description

A class that encapsulates a network file descriptor and hides knowledge of its o/s-spefific error value.

Definition at line 37 of file gdescriptor.h.


The documentation for this class was generated from the following files: