home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / advanced / chatter / chatsock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  832 b   |  36 lines

  1. // chatsock.h : interface of the CChatSocket 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 __CHATSOCK_H__
  14. #define __CHATSOCK_H__
  15.  
  16. class CChatDoc;
  17.  
  18. class CChatSocket : public CSocket
  19. {
  20.     DECLARE_DYNAMIC(CChatSocket);
  21.  
  22. // Construction
  23. public:
  24.     CChatSocket(CChatDoc* pDoc);
  25.  
  26. // Operations
  27. public:
  28.     CChatDoc* m_pDoc;
  29.  
  30. // Implementation
  31. protected:
  32.     virtual void OnReceive(int nErrorCode);
  33. };
  34.  
  35. #endif // __CHATSOCK_H__
  36.