Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
847 B

  1. // WatcherSocket.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "watcher.h"
  5. #include "WatcherSocket.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // WatcherSocket
  13. WatcherSocket::WatcherSocket()
  14. {
  15. DocView = NULL;
  16. Command = NULL;
  17. }
  18. WatcherSocket::~WatcherSocket()
  19. {
  20. CSocket::~CSocket();
  21. }
  22. // Do not edit the following lines, which are needed by ClassWizard.
  23. #if 0
  24. BEGIN_MESSAGE_MAP(WatcherSocket, CSocket)
  25. //{{AFX_MSG_MAP(WatcherSocket)
  26. //}}AFX_MSG_MAP
  27. END_MESSAGE_MAP()
  28. #endif // 0
  29. /////////////////////////////////////////////////////////////////////////////
  30. // WatcherSocket member functions
  31. void WatcherSocket::SetParentView(CView *view)
  32. {
  33. if (DocView) return;
  34. DocView = view;
  35. }