[gnoduino: 35/237] Pulled out Server API into the NetServer base class, and a few minor changes to get the NetClient AP



commit 4c7dfc8744ba01cea0a1ab26972533321b65c76b
Author: amcewen <amcewen bcs org uk>
Date:   Thu Mar 31 16:19:17 2011 +0100

    Pulled out Server API into the NetServer base class, and a few minor changes to get the NetClient API to work well with the WiFly library

 arduino/cores/arduino/NetClient.h |    2 --
 arduino/cores/arduino/NetServer.h |   11 +++++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/arduino/cores/arduino/NetClient.h b/arduino/cores/arduino/NetClient.h
index d8df914..ea64664 100644
--- a/arduino/cores/arduino/NetClient.h
+++ b/arduino/cores/arduino/NetClient.h
@@ -20,8 +20,6 @@ public:
   virtual void flush() = 0;
   virtual void stop() = 0;
   virtual uint8_t connected() = 0;
-  virtual uint8_t operator==(int) = 0;
-  virtual uint8_t operator!=(int) = 0;
   virtual operator bool() = 0;
 };
 
diff --git a/arduino/cores/arduino/NetServer.h b/arduino/cores/arduino/NetServer.h
new file mode 100644
index 0000000..91f4848
--- /dev/null
+++ b/arduino/cores/arduino/NetServer.h
@@ -0,0 +1,11 @@
+#ifndef netserver_h
+#define netserver_h
+
+class NetClient;
+
+class NetServer {
+public:
+  virtual void begin() =0;
+};
+
+#endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]