W60X_Arduino: Server_class

Arduino W60X

W60X_Arduino
Server_class

Functions

 WiFiServer::WiFiServer (IPAddress addr, uint16_t port)
 This constructor is used to init WiFiServer object with the address and port specify by caller. More...
 
 WiFiServer::WiFiServer (uint16_t port)
 This constructor is used to init WiFiServer object with port specify by caller. More...
 
bool WiFiServer::hasClient ()
 
void WiFiServer::begin ()
 This function is used to start the WiFiServer. More...
 
void WiFiServer::begin (uint16_t port)
 This function is used to start the WiFiServer. More...
 
void WiFiServer::setNoDelay (bool nodelay)
 This function is used to set no-delay flag. More...
 
bool WiFiServer::getNoDelay ()
 This function is used to get no-delay flag. More...
 
virtual size_t WiFiServer::write (uint8_t)
 This function is used to send the message (one byte) to peer. More...
 
virtual size_t WiFiServer::write (const uint8_t *buf, size_t size)
 This function is used to send the message to peer. More...
 
uint8_t WiFiServer::status ()
 
void WiFiServer::close ()
 This function is used to close the connection. More...
 
void WiFiServer::stop ()
 This function is used to close the connection. More...
 
long WiFiServer::_accept (tcp_pcb *newpcb, long err)
 
static err_t WiFiServer::_s_accept (void *arg, tcp_pcb *newpcb, err_t err)
 

Detailed Description

Function Documentation

◆ begin() [1/2]

void WiFiServer::begin ( void  )
virtual

This function is used to start the WiFiServer.

Parameters
[in]none
[out]

Implements Server.

◆ begin() [2/2]

void WiFiServer::begin ( uint16_t  port)

This function is used to start the WiFiServer.

Parameters
[in]portSpecify the port used by the object.
Returns
None
Note

◆ close()

void WiFiServer::close ( )

This function is used to close the connection.

Parameters
[in]None
Returns
None
Note

◆ getNoDelay()

bool WiFiServer::getNoDelay ( )

This function is used to get no-delay flag.

Parameters
[in]None
Returns
If the no-delay flag is true, return true, otherwise return false.
Note

◆ setNoDelay()

void WiFiServer::setNoDelay ( bool  nodelay)

This function is used to set no-delay flag.

Parameters
[in]nodelaySpecify the flag of no-delay
Returns
None
Note

◆ stop()

void WiFiServer::stop ( )

This function is used to close the connection.

Parameters
[in]None
Returns
None
Note

◆ WiFiServer() [1/2]

WiFiServer::WiFiServer ( IPAddress  addr,
uint16_t  port 
)

This constructor is used to init WiFiServer object with the address and port specify by caller.

Parameters
[in]addrSpecify the IPv4 address.
[in]portSpecify the port used by the object.
Returns
None
Note

◆ WiFiServer() [2/2]

WiFiServer::WiFiServer ( uint16_t  port)

This constructor is used to init WiFiServer object with port specify by caller.

Parameters
[in]portSpecify the port used by the object.
Returns
None
Note

◆ write() [1/2]

size_t WiFiServer::write ( uint8_t  b)
virtual

This function is used to send the message (one byte) to peer.

Parameters
[in]bSpecify the byte which will be sent to peer.
Returns
The length of the message sent to peer.
Note

Implements Print.

◆ write() [2/2]

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

This function is used to send the message to peer.

Parameters
[in]bufSpecify the buffer which will be sent to perr.
[in]sizeSpecify the length which will be sent.
Returns
The length of the message sent to peer.
Note

Reimplemented from Print.

Generated by   doxygen 1.8.14