File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -858,5 +858,18 @@ int HttpClient::readHeader()
858
858
return c;
859
859
}
860
860
861
+ int HttpClient::connect (IPAddress ip, uint16_t port) {
862
+ this ->iServerName = NULL ;
863
+ this ->iServerAddress = ip;
864
+ this -> iServerPort = port;
865
+ return iClient->connect (ip, port);
866
+ };
867
+ int HttpClient::connect (const char *host, uint16_t port) {
868
+ this ->iServerName = host;
869
+ this ->iServerAddress = IPAddress ();
870
+ this -> iServerPort = port;
871
+ return iClient->connect (host, port);
872
+ };
873
+
861
874
862
875
Original file line number Diff line number Diff line change @@ -310,8 +310,8 @@ class HttpClient : public Client
310
310
virtual void flush () { iClient->flush (); };
311
311
312
312
// Inherited from Client
313
- virtual int connect (IPAddress ip, uint16_t port) { return iClient-> connect (ip, port); } ;
314
- virtual int connect (const char *host, uint16_t port) { return iClient-> connect (host, port); } ;
313
+ virtual int connect (IPAddress ip, uint16_t port);
314
+ virtual int connect (const char *host, uint16_t port);
315
315
virtual void stop ();
316
316
virtual uint8_t connected () { return iClient->connected (); };
317
317
virtual operator bool () { return bool (iClient); };
You can’t perform that action at this time.
0 commit comments