mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
Final changes to integrate latest core updates to WiFly branch
This commit is contained in:
parent
e1748e79d7
commit
b7533c1839
@ -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;
|
||||
|
@ -24,8 +24,6 @@ public:
|
||||
virtual void flush();
|
||||
virtual void stop();
|
||||
virtual uint8_t connected();
|
||||
virtual uint8_t operator==(int);
|
||||
virtual uint8_t operator!=(int);
|
||||
virtual operator bool();
|
||||
|
||||
friend class Server;
|
||||
|
Loading…
x
Reference in New Issue
Block a user