41#ifndef _DWMDESCRIPTOR_HH_
42#define _DWMDESCRIPTOR_HH_
123 virtual operator int ()
const
146 virtual bool ReadWouldBlock();
This class encapsulates UNIX file and socket descriptors.
Definition DwmDescriptor.hh:60
virtual bool Close()
Closes the Descriptor. Returns true on success, false on failure.
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 FdIsSet(fd_set &fdSet)
If Descriptor is valid and is set in fdSet, returns true.
Descriptor & operator=(const Descriptor &d)
operator = (assignment operator).
virtual bool Detach()
Disassociates the Descriptor from the underlying UNIX descriptor.
virtual bool SetNonBlocking()
Sets the Descriptor to non-blocking.
virtual ~Descriptor()
Destructor. Note this will close the underlying UNIX descriptor.
virtual bool Attach(int fd)
Associates the Descriptor with an existing UNIX descriptor fd.
virtual bool FdClr(fd_set &fdSet)
If Descriptor is valid, clears it in fdSet and returns true.
Descriptor(const Descriptor &d)
Copy constructor. Will dup() the descriptor of d.