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

Public Member Functions

 WiFiClient ()
 
virtual ~WiFiClient ()
 
 WiFiClient (const WiFiClient &)
 
WiFiClientoperator= (const WiFiClient &)
 
uint8_t status ()
 
virtual int connect (IPAddress ip, uint16_t port)
 
virtual int connect (const char *host, uint16_t port)
 
virtual size_t write (uint8_t)
 
virtual size_t write (const uint8_t *buf, size_t size)
 
size_t write_P (PGM_P buf, size_t size)
 
template<typename T >
size_t write (T &source, size_t unitSize)
 
virtual int available ()
 
virtual int read ()
 
virtual int read (uint8_t *buf, size_t size)
 
virtual int peek ()
 
virtual size_t peekBytes (uint8_t *buffer, size_t length)
 
size_t peekBytes (char *buffer, size_t length)
 
virtual void flush ()
 
virtual void stop ()
 
virtual uint8_t connected ()
 
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 ()
 

Static Public Member Functions

static void setLocalPortStart (uint16_t port)
 
static void stopAll ()
 
static void stopAllExcept (WiFiClient *c)
 

Protected Member Functions

 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)
 

Static Protected Member Functions

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)
 

Protected Attributes

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

Static Protected Attributes

static uint16_t _localPort = 0
 
- Static Protected Attributes inherited from SList< WiFiClient >
static WiFiClient_s_first = 0
 

Constructor & Destructor Documentation

WiFiClient::WiFiClient ( ClientContext client)
protected
WiFiClient::WiFiClient ( )
WiFiClient::~WiFiClient ( )
virtual
WiFiClient::WiFiClient ( const WiFiClient other)

Member Function Documentation

int8_t WiFiClient::_connected ( void *  tpcb,
int8_t  err 
)
protected
void WiFiClient::_err ( int8_t  err)
protected
int8_t WiFiClient::_s_connected ( void *  arg,
void *  tpcb,
int8_t  err 
)
staticprotected
void WiFiClient::_s_err ( void *  arg,
int8_t  err 
)
staticprotected
int WiFiClient::available ( void  )
virtual

Implements Client.

Reimplemented in WiFiClientSecure.

int WiFiClient::connect ( IPAddress  ip,
uint16_t  port 
)
virtual

Implements Client.

Reimplemented in WiFiClientSecure.

int WiFiClient::connect ( const char *  host,
uint16_t  port 
)
virtual

Implements Client.

Reimplemented in WiFiClientSecure.

uint8_t WiFiClient::connected ( void  )
virtual

Implements Client.

Reimplemented in WiFiClientSecure.

void WiFiClient::flush ( void  )
virtual

Implements Client.

bool WiFiClient::getNoDelay ( )
IPAddress WiFiClient::localIP ( )
uint16_t WiFiClient::localPort ( )
WiFiClient::operator bool ( )
virtual

Implements Client.

WiFiClient & WiFiClient::operator= ( const WiFiClient other)
int WiFiClient::peek ( void  )
virtual

Implements Client.

Reimplemented in WiFiClientSecure.

size_t WiFiClient::peekBytes ( uint8_t *  buffer,
size_t  length 
)
virtual

Reimplemented in WiFiClientSecure.

size_t WiFiClient::peekBytes ( char *  buffer,
size_t  length 
)
int WiFiClient::read ( void  )
virtual

Implements Client.

Reimplemented in WiFiClientSecure.

int WiFiClient::read ( uint8_t *  buf,
size_t  size 
)
virtual

Implements Client.

Reimplemented in WiFiClientSecure.

IPAddress WiFiClient::remoteIP ( )
uint16_t WiFiClient::remotePort ( )
static void WiFiClient::setLocalPortStart ( uint16_t  port)
static
void WiFiClient::setNoDelay ( bool  nodelay)
uint8_t WiFiClient::status ( )
void WiFiClient::stop ( )
virtual

Implements Client.

Reimplemented in WiFiClientSecure.

void WiFiClient::stopAll ( )
static
void WiFiClient::stopAllExcept ( WiFiClient c)
static
size_t WiFiClient::write ( uint8_t  b)
virtual

Implements Client.

size_t WiFiClient::write ( const uint8_t *  buf,
size_t  size 
)
virtual

Implements Client.

Reimplemented in WiFiClientSecure.

template<typename T >
size_t WiFiClient::write ( T &  source,
size_t  unitSize 
)
template<typename T >
size_t WiFiClient::write ( T &  src)
size_t WiFiClient::write_P ( PGM_P  buf,
size_t  size 
)

Member Data Documentation

ClientContext* WiFiClient::_client
protected
uint16_t WiFiClient::_localPort = 0
staticprotected