mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Add axTLS, first draft of WiFiClientSecure (#43)
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
|
||||
#ifndef wificlient_h
|
||||
#define wificlient_h
|
||||
#include "Arduino.h"
|
||||
#include "Arduino.h"
|
||||
#include "Print.h"
|
||||
#include "Client.h"
|
||||
#include "IPAddress.h"
|
||||
@ -74,7 +74,7 @@ public:
|
||||
size_t doneLen = 0;
|
||||
size_t sentLen;
|
||||
int i;
|
||||
|
||||
|
||||
while (src.available() > WIFICLIENT_MAX_PACKET_SIZE){
|
||||
src.read(obuf, WIFICLIENT_MAX_PACKET_SIZE);
|
||||
sentLen = write(obuf, WIFICLIENT_MAX_PACKET_SIZE);
|
||||
@ -83,7 +83,7 @@ public:
|
||||
return doneLen;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
uint16_t leftLen = src.available();
|
||||
src.read(obuf, leftLen);
|
||||
sentLen = write(obuf, leftLen);
|
||||
@ -98,7 +98,7 @@ public:
|
||||
static void stopAll();
|
||||
static void stopAllExcept(WiFiClient * c);
|
||||
|
||||
private:
|
||||
protected:
|
||||
|
||||
static int8_t _s_connected(void* arg, void* tpcb, int8_t err);
|
||||
static void _s_err(void* arg, int8_t err);
|
||||
|
Reference in New Issue
Block a user