diff options
author | amcewen <amcewen@bcs.org.uk> | 2011-03-31 16:19:17 +0100 |
---|---|---|
committer | amcewen <amcewen@bcs.org.uk> | 2011-03-31 16:19:17 +0100 |
commit | e852be3e97763e621a0f8014a3db4bf92a650b50 (patch) | |
tree | 4c71f3f0c78873052612951aabc31659b2a41d4d | |
parent | e011dab7b413949c942ad31c3d9c6003f76133c0 (diff) |
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
-rw-r--r-- | cores/arduino/NetClient.h | 2 | ||||
-rw-r--r-- | cores/arduino/NetServer.h | 11 |
2 files changed, 11 insertions, 2 deletions
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 |