diff options
Diffstat (limited to 'cores/arduino')
-rw-r--r-- | cores/arduino/NetClient.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cores/arduino/NetClient.h b/cores/arduino/NetClient.h index ea64664..35bfa0a 100644 --- a/cores/arduino/NetClient.h +++ b/cores/arduino/NetClient.h @@ -1,6 +1,5 @@ #ifndef netclient_h #define netclient_h -#include "WProgram.h" #include "Print.h" #include "NetClient.h" #include "IPAddress.h" @@ -10,9 +9,9 @@ class NetClient : public Stream { public: virtual int connect(IPAddress ip, uint16_t port) =0; virtual int connect(const char *host, uint16_t port) =0; - virtual void write(uint8_t) =0; - virtual void write(const char *str) =0; - virtual void write(const uint8_t *buf, size_t size) =0; + virtual size_t write(uint8_t) =0; + virtual size_t write(const char *str) =0; + virtual size_t write(const uint8_t *buf, size_t size) =0; virtual int available() = 0; virtual int read() = 0; virtual int read(uint8_t *buf, size_t size) = 0; |