/***************************************************************************** ************************* AIRBORNE SYSTEMS ************************* ************************* COMPUTING DEVICES CANADA ************************* ****************************************************************************** Filename: CSocket.h Project: LOCATOR Purpose: C++ definition for the LOCATOR CSocket class. Base class for the LOCATOR socket objects. This class provides the lowest-level management of the sockets. Release: V1.0 Author: Denis Dumas Date: 30-Jul-1999 Modified: *****************************************************************************/ #ifndef __CSOCKET_H__ #define __CSOCKET_H__ #include "selectLib.h" class CSocket { public : int Init(); int CheckSocket ( bool * const pHasData ); int Getfd() { return cSocketDescriptor; } int Setfds ( fd_set * const pReadSet, int * pMaxfd ); protected : bool cIsInitialized; // instance initialization flag int cSocketDescriptor; // socket file descriptor CSocket(); virtual ~CSocket(); int Init ( const int pSocketDescriptor ); }; #endif