ESP8266
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WiFiClientSecure Class Reference
Inheritance diagram for WiFiClientSecure:
WiFiClient Client SList< WiFiClient > Stream Print

Public Member Functions

 WiFiClientSecure ()
 
 ~WiFiClientSecure () override
 
 WiFiClientSecure (const WiFiClientSecure &)
 
WiFiClientSecureoperator= (const WiFiClientSecure &)
 
int connect (IPAddress ip, uint16_t port) override
 
int connect (const char *name, uint16_t port) override
 
bool verify (const char *fingerprint, const char *url)
 
uint8_t connected () override
 
size_t write (const uint8_t *buf, size_t size) override
 
int read (uint8_t *buf, size_t size) override
 
int available () override
 
int read () override
 
int peek () override
 
size_t peekBytes (uint8_t *buffer, size_t length) override
 
void stop () override
 
void setCertificate (const uint8_t *cert_data, size_t size)
 
void setPrivateKey (const uint8_t *pk, size_t size)
 
bool loadCertificate (Stream &stream, size_t size)
 
bool loadPrivateKey (Stream &stream, size_t size)
 
template<typename TFile >
bool loadCertificate (TFile &file)
 
template<typename TFile >
bool loadPrivateKey (TFile &file)
 
- Public Member Functions inherited from WiFiClient
 WiFiClient ()
 
virtual ~WiFiClient ()
 
 WiFiClient (const WiFiClient &)
 
WiFiClientoperator= (const WiFiClient &)
 
uint8_t status ()
 
virtual size_t write (uint8_t)
 
size_t write_P (PGM_P buf, size_t size)
 
template<typename T >
size_t write (T &source, size_t unitSize)
 
size_t peekBytes (char *buffer, size_t length)
 
virtual void flush ()
 
virtual operator bool ()
 
IPAddress remoteIP ()
 
uint16_t remotePort ()
 
IPAddress localIP ()
 
uint16_t localPort ()
 
bool getNoDelay ()
 
void setNoDelay (bool nodelay)
 
template<typename T >
size_t write (T &src)
 
- Public Member Functions inherited from Stream
 Stream ()
 
void setTimeout (unsigned long timeout)
 
bool find (const char *target)
 
bool find (uint8_t *target)
 
bool find (const char *target, size_t length)
 
bool find (const uint8_t *target, size_t length)
 
bool find (char target)
 
bool findUntil (const char *target, const char *terminator)
 
bool findUntil (const uint8_t *target, const char *terminator)
 
bool findUntil (const char *target, size_t targetLen, const char *terminate, size_t termLen)
 
bool findUntil (const uint8_t *target, size_t targetLen, const char *terminate, size_t termLen)
 
long parseInt ()
 
float parseFloat ()
 
size_t readBytes (char *buffer, size_t length)
 
size_t readBytes (uint8_t *buffer, size_t length)
 
size_t readBytesUntil (char terminator, char *buffer, size_t length)
 
size_t readBytesUntil (char terminator, uint8_t *buffer, size_t length)
 
String readString ()
 
String readStringUntil (char terminator)
 
- Public Member Functions inherited from Print
 Print ()
 
int getWriteError ()
 
void clearWriteError ()
 
size_t write (const char *str)
 
size_t write (const char *buffer, size_t size)
 
size_t printf (const char *format,...) __attribute__((format(printf
 
size_t size_t print (const __FlashStringHelper *)
 
size_t print (const String &)
 
size_t print (const char[])
 
size_t print (char)
 
size_t print (unsigned char, int=10)
 
size_t print (int, int=10)
 
size_t print (unsigned int, int=10)
 
size_t print (long, int=10)
 
size_t print (unsigned long, int=10)
 
size_t print (double, int=2)
 
size_t print (const Printable &)
 
size_t println (const __FlashStringHelper *)
 
size_t println (const String &s)
 
size_t println (const char[])
 
size_t println (char)
 
size_t println (unsigned char, int=10)
 
size_t println (int, int=10)
 
size_t println (unsigned int, int=10)
 
size_t println (long, int=10)
 
size_t println (unsigned long, int=10)
 
size_t println (double, int=2)
 
size_t println (const Printable &)
 
size_t println (void)
 
- Public Member Functions inherited from SList< WiFiClient >
 SList ()
 

Protected Member Functions

int _connectSSL ()
 
- Protected Member Functions inherited from WiFiClient
 WiFiClient (ClientContext *client)
 
int8_t _connected (void *tpcb, int8_t err)
 
void _err (int8_t err)
 
- Protected Member Functions inherited from Client
uint8_t * rawIPAddress (IPAddress &addr)
 
- Protected Member Functions inherited from Stream
int timedRead ()
 
int timedPeek ()
 
int peekNextDigit ()
 
long parseInt (char skipChar)
 
float parseFloat (char skipChar)
 
- Protected Member Functions inherited from Print
void setWriteError (int err=1)
 

Protected Attributes

SSLContext_ssl = nullptr
 
- Protected Attributes inherited from WiFiClient
ClientContext_client
 
- Protected Attributes inherited from Stream
unsigned long _timeout
 
unsigned long _startMillis
 
- Protected Attributes inherited from SList< WiFiClient >
WiFiClient_next
 

Additional Inherited Members

- Static Public Member Functions inherited from WiFiClient
static void setLocalPortStart (uint16_t port)
 
static void stopAll ()
 
static void stopAllExcept (WiFiClient *c)
 
- Static Protected Member Functions inherited from WiFiClient
static int8_t _s_connected (void *arg, void *tpcb, int8_t err)
 
static void _s_err (void *arg, int8_t err)
 
- Static Protected Member Functions inherited from SList< WiFiClient >
static void _add (WiFiClient *self)
 
static void _remove (WiFiClient *self)
 
- Static Protected Attributes inherited from WiFiClient
static uint16_t _localPort = 0
 
- Static Protected Attributes inherited from SList< WiFiClient >
static WiFiClient_s_first = 0
 

Constructor & Destructor Documentation

WiFiClientSecure::WiFiClientSecure ( )
WiFiClientSecure::~WiFiClientSecure ( )
override
WiFiClientSecure::WiFiClientSecure ( const WiFiClientSecure other)

Member Function Documentation

int WiFiClientSecure::_connectSSL ( )
protected
int WiFiClientSecure::available ( void  )
overridevirtual

Reimplemented from WiFiClient.

int WiFiClientSecure::connect ( IPAddress  ip,
uint16_t  port 
)
overridevirtual

Reimplemented from WiFiClient.

int WiFiClientSecure::connect ( const char *  name,
uint16_t  port 
)
overridevirtual

Reimplemented from WiFiClient.

uint8_t WiFiClientSecure::connected ( void  )
overridevirtual

Reimplemented from WiFiClient.

bool WiFiClientSecure::loadCertificate ( Stream stream,
size_t  size 
)
template<typename TFile >
bool WiFiClientSecure::loadCertificate ( TFile &  file)
bool WiFiClientSecure::loadPrivateKey ( Stream stream,
size_t  size 
)
template<typename TFile >
bool WiFiClientSecure::loadPrivateKey ( TFile &  file)
WiFiClientSecure & WiFiClientSecure::operator= ( const WiFiClientSecure rhs)
int WiFiClientSecure::peek ( void  )
overridevirtual

Reimplemented from WiFiClient.

size_t WiFiClientSecure::peekBytes ( uint8_t *  buffer,
size_t  length 
)
overridevirtual

Reimplemented from WiFiClient.

int WiFiClientSecure::read ( uint8_t *  buf,
size_t  size 
)
overridevirtual

Reimplemented from WiFiClient.

int WiFiClientSecure::read ( void  )
overridevirtual

Reimplemented from WiFiClient.

void WiFiClientSecure::setCertificate ( const uint8_t *  cert_data,
size_t  size 
)
void WiFiClientSecure::setPrivateKey ( const uint8_t *  pk,
size_t  size 
)
void WiFiClientSecure::stop ( )
overridevirtual

Reimplemented from WiFiClient.

bool WiFiClientSecure::verify ( const char *  fingerprint,
const char *  url 
)
size_t WiFiClientSecure::write ( const uint8_t *  buf,
size_t  size 
)
overridevirtual

Reimplemented from WiFiClient.

Member Data Documentation

SSLContext* WiFiClientSecure::_ssl = nullptr
protected