My Project
|
Telnet connection. More...
Public Member Functions | |
Connection (shell_factory_function &shell_factory, WiFiClient &&client, unsigned long idle_timeout, unsigned long write_timeout) | |
Create a telnet connection shell. More... | |
bool | loop () |
Stop the shell if the client is not connected. More... | |
bool | stop () |
Stop the shell. More... | |
Private Member Functions | |
Connection (const Connection &)=delete | |
Connection & | operator= (const Connection &)=delete |
Private Attributes | |
WiFiClient | client_ |
TelnetStream | stream_ |
std::weak_ptr< uuid::console::Shell > | shell_ |
IPAddress | addr_ |
uint16_t | port_ |
Telnet connection.
Holds the client and stream instance for the lifetime of the shell.
uuid::telnet::TelnetService::Connection::Connection | ( | shell_factory_function & | shell_factory, |
WiFiClient && | client, | ||
unsigned long | idle_timeout, | ||
unsigned long | write_timeout | ||
) |
Create a telnet connection shell.
[in] | shell_factory | Function to create a shell for new connections. |
[in] | client | Client connection. |
[in] | idle_timeout | Idle timeout in seconds. |
[in] | write_timeout | Idle timeout in milliseconds. |
Definition at line 177 of file telnet.cpp.
bool uuid::telnet::TelnetService::Connection::loop | ( | ) |
Stop the shell if the client is not connected.
Definition at line 210 of file telnet.cpp.
bool uuid::telnet::TelnetService::Connection::stop | ( | ) |
Stop the shell.
Definition at line 230 of file telnet.cpp.
|
private |
|
private |
|
private |
|
private |
|
private |