Logo
~Sockets~
~Examples~
~Contact~


InternalSocket.h

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