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
This commit is contained in:
parent
8175724830
commit
c873739ec3
|
@ -20,8 +20,6 @@ public:
|
||||||
virtual void flush() = 0;
|
virtual void flush() = 0;
|
||||||
virtual void stop() = 0;
|
virtual void stop() = 0;
|
||||||
virtual uint8_t connected() = 0;
|
virtual uint8_t connected() = 0;
|
||||||
virtual uint8_t operator==(int) = 0;
|
|
||||||
virtual uint8_t operator!=(int) = 0;
|
|
||||||
virtual operator bool() = 0;
|
virtual operator bool() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
#ifndef netserver_h
|
||||||
|
#define netserver_h
|
||||||
|
|
||||||
|
class NetClient;
|
||||||
|
|
||||||
|
class NetServer {
|
||||||
|
public:
|
||||||
|
virtual void begin() =0;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue