42 #ifndef _DWMDESCRIPTOR_HH_ 43 #define _DWMDESCRIPTOR_HH_ 46 #include <sys/types.h> 101 virtual bool Attach(
int fd);
126 virtual operator int ()
const 135 virtual bool FdSet(fd_set & fdSet);
141 virtual bool FdClr(fd_set & fdSet);
147 virtual bool FdIsSet(fd_set & fdSet);
149 virtual bool ReadWouldBlock();
157 #endif // _DWMDESCRIPTOR_HH_ virtual bool Detach()
Disassociates the Descriptor from the underlying UNIX descriptor.
virtual bool SetBlocking()
Sets the soccket to blocking.
virtual bool FdSet(fd_set &fdSet)
If Descriptor is valid, sets it in fdSet and returns true.
virtual bool Close()
Closes the Descriptor. Returns true on success, false on failure.
virtual bool FdIsSet(fd_set &fdSet)
If Descriptor is valid and is set in fdSet, returns true.
virtual bool SetNonBlocking()
Sets the Descriptor to non-blocking.
virtual ~Descriptor()
Destructor. Note this will close the underlying UNIX descriptor.
Definition: DwmBZ2IO.hh:67
Dwm::IO class definition.
virtual bool Attach(int fd)
Associates the Descriptor with an existing UNIX descriptor fd.
This class encapsulates UNIX file and socket descriptors.
Definition: DwmDescriptor.hh:62
Descriptor & operator=(const Descriptor &d)
operator = (assignment operator).
virtual bool FdClr(fd_set &fdSet)
If Descriptor is valid, clears it in fdSet and returns true.