|
TinyPPP
PPP networking over any Arduino Stream
|
TCP server over PPP: used like WiFiServer or EthernetServer. More...
#include <PPPSockets.h>
Public Member Functions | |
| PPPServer (uint16_t port, IPStack &stack) | |
| Server on the indicated stack. | |
| PPPServer (uint16_t port=80) | |
| Server on the default stack (the first TinyPPP instance) | |
| PPPClient | accept () |
| Returns a new connection (or an invalid client) | |
| PPPClient | available () |
| Returns a connection that has data available (or an invalid client) | |
| void | begin () override |
| Starts listening. | |
| void | begin (uint16_t port) |
| Starts listening on the indicated port. | |
| void | end () |
| Stops listening (open connections stay open) | |
| operator bool () | |
| true if the server is listening | |
| uint16_t | port () const |
| The server port. | |
| size_t | write (const uint8_t *buf, size_t size) override |
| Writes data to all connected clients. | |
| size_t | write (uint8_t b) override |
| Writes one byte to all connected clients. | |
Protected Member Functions | |
| IPStack * | stack () const |
Protected Attributes | |
| bool | _listening = false |
| uint16_t | _port |
| IPStack * | _stack = nullptr |
TCP server over PPP: used like WiFiServer or EthernetServer.
Server on the default stack (the first TinyPPP instance)
|
inline |
Returns a new connection (or an invalid client)
|
inline |
Returns a connection that has data available (or an invalid client)
|
inlineoverride |
Starts listening.
|
inline |
Stops listening (open connections stay open)
|
inline |
The server port.
|
inlineprotected |
Writes data to all connected clients.
|
protected |