Logo
~Sockets~
~Examples~
~Contact~


MasterSocket.h

Go to the documentation of this file.
00001 #ifndef _MASTERSOCKET_H
00002 #define _MASTERSOCKET_H
00003 
00004 #include "BaseSocket.h"
00005 
00006 
00007 #define PACKETSIZE 32000
00008 
00009 class MasterSocket : public BaseSocket
00010 {
00011 public:
00012         MasterSocket(ISocketHandler&);
00013         ~MasterSocket();
00014 
00015         void Init();
00016         void InitSSLServer();
00017 
00018         void OnAccept();
00019         void OnSSLAccept();
00020         void OnDelete();
00021         void OnRead();
00022 
00023         void SendToExt();
00024         void CloseExtConn();
00025 
00026 private:
00027         MasterSocket(const MasterSocket& s) : BaseSocket(s) {} // copy constructor
00028         MasterSocket& operator=(const MasterSocket& ) { return *this; } // assignment operator
00029         unsigned short m_ip;
00030         short m_command;
00031         short m_length;
00032         char m_packet[PACKETSIZE];
00033         size_t m_packet_ptr;
00034         int m_state;
00035 };
00036 
00037 
00038 
00039 
00040 #endif // _MASTERSOCKET_H
Page, code, and content Copyright (C) 2006 by Anders Hedström
Generated on Mon Aug 29 20:21:47 2005 for C++ Sockets by  doxygen 1.4.4