summaryrefslogtreecommitdiff
path: root/Ivy/IvyWatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy/IvyWatcher.h')
-rw-r--r--Ivy/IvyWatcher.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/Ivy/IvyWatcher.h b/Ivy/IvyWatcher.h
new file mode 100644
index 0000000..7836a90
--- /dev/null
+++ b/Ivy/IvyWatcher.h
@@ -0,0 +1,52 @@
+#if !defined(AFX_BUSWATCHER_H__F7F08FE7_E653_11D0_AE3E_080009F92591__INCLUDED_)
+#define AFX_BUSWATCHER_H__F7F08FE7_E653_11D0_AE3E_080009F92591__INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+// IvyWatcher.h : header file
+//
+
+#include "stdafx.h"
+#include "ThreadedSocket.h"
+#include "Ivy.h"
+
+/////////////////////////////////////////////////////////////////////////////
+// IvyWatcher command target
+
+class IvyWatcher : public CThreadedSocket
+{
+// Attributes
+public:
+
+// Operations
+public:
+ IvyWatcher(Ivy *bus);
+ virtual ~IvyWatcher();
+// Overrides
+public:
+ void start(const char *domain);
+ void stop();
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(IvyWatcher)
+ public:
+ virtual void OnReceive(int nErrorCode);
+ //}}AFX_VIRTUAL
+
+ // Generated message map functions
+ //{{AFX_MSG(IvyWatcher)
+ // NOTE - the ClassWizard will add and remove member functions here.
+ //}}AFX_MSG
+
+// Implementation
+protected:
+ Ivy * bus;
+
+};
+
+/////////////////////////////////////////////////////////////////////////////
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_BUSWATCHER_H__F7F08FE7_E653_11D0_AE3E_080009F92591__INCLUDED_)