ESP8266
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Attributes | List of all members
WiFiServer Class Reference
Inheritance diagram for WiFiServer:
Server Print

Public Member Functions

 WiFiServer (IPAddress addr, uint16_t port)
 
 WiFiServer (uint16_t port)
 
WiFiClient available (uint8_t *status=NULL)
 
bool hasClient ()
 
void begin ()
 
void setNoDelay (bool nodelay)
 
bool getNoDelay ()
 
virtual size_t write (uint8_t)
 
virtual size_t write (const uint8_t *buf, size_t size)
 
uint8_t status ()
 
void close ()
 
void stop ()
 
- 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)
 

Protected Member Functions

int8_t _accept (tcp_pcb *newpcb, int8_t err)
 
void _discard (ClientContext *client)
 
- Protected Member Functions inherited from Print
void setWriteError (int err=1)
 

Static Protected Member Functions

static int8_t _s_accept (void *arg, tcp_pcb *newpcb, int8_t err)
 
static void _s_discard (void *server, ClientContext *ctx)
 

Private Attributes

uint16_t _port
 
IPAddress _addr
 
tcp_pcb * _pcb
 
ClientContext_unclaimed
 
ClientContext_discarded
 

Constructor & Destructor Documentation

WiFiServer::WiFiServer ( IPAddress  addr,
uint16_t  port 
)
WiFiServer::WiFiServer ( uint16_t  port)

Member Function Documentation

int8_t WiFiServer::_accept ( tcp_pcb *  newpcb,
int8_t  err 
)
protected
void WiFiServer::_discard ( ClientContext client)
protected
int8_t WiFiServer::_s_accept ( void *  arg,
tcp_pcb *  newpcb,
int8_t  err 
)
staticprotected
void WiFiServer::_s_discard ( void *  server,
ClientContext ctx 
)
staticprotected
WiFiClient WiFiServer::available ( uint8_t *  status = NULL)
void WiFiServer::begin ( )
virtual

Implements Server.

void WiFiServer::close ( )
bool WiFiServer::getNoDelay ( )
bool WiFiServer::hasClient ( )
void WiFiServer::setNoDelay ( bool  nodelay)
uint8_t WiFiServer::status ( )
void WiFiServer::stop ( )
size_t WiFiServer::write ( uint8_t  b)
virtual

Implements Print.

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

Reimplemented from Print.

Member Data Documentation

IPAddress WiFiServer::_addr
private
ClientContext* WiFiServer::_discarded
private
tcp_pcb* WiFiServer::_pcb
private
uint16_t WiFiServer::_port
private
ClientContext* WiFiServer::_unclaimed
private