00001 00002 #ifndef _LISTENING_SOCKET_H 00003 #define _LISTENING_SOCKET_H 00004 00005 #include "QCuore.hh" 00006 #include "QFileDescriptor.hh" 00007 00016 class QListeningSocket: public QFileDescriptor 00017 { 00018 public: 00026 QListeningSocket(int port); 00027 00029 virtual ~QListeningSocket() {} 00030 00036 virtual int HandleCommand(QDescriptorList& descrList); 00037 00043 virtual int AcceptConnection() const; 00044 }; 00045 #endif