ESP8266
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
EthernetClient Class Reference
Inheritance diagram for EthernetClient:
Client Stream Print

Public Member Functions

 EthernetClient ()
 
 EthernetClient (uint8_t sock)
 
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)
 
virtual int available ()
 
virtual int read ()
 
virtual int read (uint8_t *buf, size_t size)
 
virtual int peek ()
 
virtual void flush ()
 
virtual void stop ()
 
virtual uint8_t connected ()
 
virtual operator bool ()
 
virtual bool operator== (const bool value)
 
virtual bool operator!= (const bool value)
 
virtual bool operator== (const EthernetClient &)
 
virtual bool operator!= (const EthernetClient &rhs)
 
- 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)
 

Private Attributes

uint8_t _sock
 

Static Private Attributes

static uint16_t _srcport = 49152
 

Additional Inherited Members

- 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 inherited from Stream
unsigned long _timeout
 
unsigned long _startMillis
 

Constructor & Destructor Documentation

EthernetClient::EthernetClient ( )
EthernetClient::EthernetClient ( uint8_t  sock)

Member Function Documentation

int EthernetClient::available ( void  )
virtual

Implements Client.

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

Implements Client.

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

Implements Client.

uint8_t EthernetClient::connected ( void  )
virtual

Implements Client.

void EthernetClient::flush ( void  )
virtual

Implements Client.

EthernetClient::operator bool ( )
virtual

Implements Client.

virtual bool EthernetClient::operator!= ( const bool  value)
virtual
virtual bool EthernetClient::operator!= ( const EthernetClient rhs)
virtual
virtual bool EthernetClient::operator== ( const bool  value)
virtual
bool EthernetClient::operator== ( const EthernetClient rhs)
virtual
int EthernetClient::peek ( void  )
virtual

Implements Client.

int EthernetClient::read ( void  )
virtual

Implements Client.

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

Implements Client.

uint8_t EthernetClient::status ( )
void EthernetClient::stop ( )
virtual

Implements Client.

size_t EthernetClient::write ( uint8_t  b)
virtual

Implements Client.

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

Implements Client.

Member Data Documentation

uint8_t EthernetClient::_sock
private
uint16_t EthernetClient::_srcport = 49152
staticprivate