home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / advanced / chatsrvr / lstnsock.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  1KB  |  47 lines

  1. // lstnsock.h : interface of the CListeningSocket class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #ifndef __LSTNSOCK_H__
  14. #define __LSTNSOCK_H__
  15.  
  16. class CServerDoc;
  17.  
  18. class CListeningSocket : public CSocket
  19. {
  20.     DECLARE_DYNAMIC(CListeningSocket);
  21. private:
  22.     CListeningSocket(const CListeningSocket& rSrc);         // no implementation
  23.     void operator=(const CListeningSocket& rSrc);  // no implementation
  24.  
  25. // Construction
  26. public:
  27.     CListeningSocket(CServerDoc* pDoc);
  28.  
  29. // Attributes
  30. public:
  31.     CServerDoc* m_pDoc;
  32.  
  33. // Overridable callbacks
  34. protected:
  35.     virtual void OnAccept(int nErrorCode);
  36.  
  37. // Implementation
  38. public:
  39.     virtual ~CListeningSocket();
  40.  
  41. #ifdef _DEBUG
  42.     virtual void AssertValid() const;
  43.     virtual void Dump(CDumpContext& dc) const;
  44. #endif
  45. };
  46. #endif // __LSTNSOCK_H__
  47.