![]() |
ExtSocket.hGo to the documentation of this file.00001 #ifndef _EXTSOCKET_H 00002 #define _EXTSOCKET_H 00003 00004 #include <TcpSocket.h> 00005 #include <ISocketHandler.h> 00006 00007 00008 class MasterSocket; 00009 00010 class ExtSocket : public TcpSocket 00011 { 00012 public: 00013 ExtSocket(ISocketHandler&); 00014 ~ExtSocket(); 00015 00016 void OnAccept(); 00017 void OnDelete(); 00018 void OnRawData(const char *,size_t); 00019 00020 unsigned short GetID() { return m_id; } 00021 00022 private: 00023 ExtSocket(const ExtSocket& s) : TcpSocket(s) {} // copy constructor 00024 ExtSocket& operator=(const ExtSocket& ) { return *this; } // assignment operator 00025 MasterSocket *m_parent; 00026 unsigned short m_id; 00027 }; 00028 00029 00030 00031 00032 #endif // _EXTSOCKET_H |