From e852be3e97763e621a0f8014a3db4bf92a650b50 Mon Sep 17 00:00:00 2001 From: amcewen Date: Thu, 31 Mar 2011 16:19:17 +0100 Subject: 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 --- cores/arduino/NetClient.h | 2 -- cores/arduino/NetServer.h | 11 +++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 cores/arduino/NetServer.h diff --git a/cores/arduino/NetClient.h b/cores/arduino/NetClient.h index d8df914..ea64664 100644 --- a/cores/arduino/NetClient.h +++ b/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/cores/arduino/NetServer.h b/cores/arduino/NetServer.h new file mode 100644 index 0000000..91f4848 --- /dev/null +++ b/cores/arduino/NetServer.h @@ -0,0 +1,11 @@ +#ifndef netserver_h +#define netserver_h + +class NetClient; + +class NetServer { +public: + virtual void begin() =0; +}; + +#endif -- cgit v1.2.3-18-g5258