Add connect with timeout to Client class

This commit is contained in:
me-no-dev 2019-04-15 18:01:43 +02:00
parent 3d6e4e1b94
commit 9a9ff62216

View File

@ -28,6 +28,8 @@ class Client: public Stream
public:
virtual int connect(IPAddress ip, uint16_t port) =0;
virtual int connect(const char *host, uint16_t port) =0;
virtual int connect(IPAddress ip, uint16_t port, int timeout) =0;
virtual int connect(const char *host, uint16_t port, int timeout) =0;
virtual size_t write(uint8_t) =0;
virtual size_t write(const uint8_t *buf, size_t size) =0;
virtual int available() = 0;