#include <Shellminator-TcpSocket.hpp>
|
static const uint8_t | TELNET_IAC_DONT_LINEMODE [3] = { 255, 254, 34 } |
|
static const uint8_t | TELNET_IAC_WILL_ECHO [3] = { 255, 251, 1 } |
|
static const uint8_t | TELNET_IAC_DONT_ECHO [3] = { 255, 254, 1 } |
|
static const uint8_t | TELNET_IAC_WILL_SUPPRESS_GO_AHEAD [3] = { 255, 251, 3 } |
|
static const uint8_t | TELNET_IAC_DO_SUPPRESS_GO_AHEAD [3] = { 255, 253, 3 } |
|
Definition at line 72 of file Shellminator-TcpSocket.hpp.
◆ TelnetNegotiationState_t
Enumerator |
---|
TELNET_FIRST_BYTE_STATE | |
TELNET_COMMAND_BYTE_STATE | |
TELNET_OPTION_BYTE_STATE | |
Definition at line 76 of file Shellminator-TcpSocket.hpp.
◆ ShellminatorTcpSocket() [1/2]
ShellminatorTcpSocket::ShellminatorTcpSocket |
( |
| ) |
|
◆ ShellminatorTcpSocket() [2/2]
ShellminatorTcpSocket::ShellminatorTcpSocket |
( |
int |
port_p | ) |
|
◆ appendToCircularBuffer() [1/2]
void ShellminatorTcpSocket::appendToCircularBuffer |
( |
uint8_t * |
data, |
|
|
int |
dataSize |
|
) |
| |
|
private |
◆ appendToCircularBuffer() [2/2]
void ShellminatorTcpSocket::appendToCircularBuffer |
( |
uint8_t |
data | ) |
|
|
private |
◆ attachConnectCallback()
◆ attachDebugChannel()
void ShellminatorTcpSocket::attachDebugChannel |
( |
Stream * |
dbg_p | ) |
|
◆ attachDisconnectCallback()
void ShellminatorTcpSocket::attachDisconnectCallback |
( |
void(*)(ShellminatorTcpSocket *) |
disconnectCallback_p | ) |
|
◆ available()
int ShellminatorTcpSocket::available |
( |
| ) |
|
|
override |
◆ begin()
void ShellminatorTcpSocket::begin |
( |
| ) |
|
◆ closeClient()
void ShellminatorTcpSocket::closeClient |
( |
| ) |
|
|
private |
◆ flush()
void ShellminatorTcpSocket::flush |
( |
| ) |
|
|
override |
◆ peek()
int ShellminatorTcpSocket::peek |
( |
| ) |
|
|
override |
Peek the firtst byte from the channel.
- Returns
- Read and return one byte form the channel. The byte will NOT be removed from the channel.
Definition at line 234 of file Shellminator-TcpSocket.cpp.
◆ read()
int ShellminatorTcpSocket::read |
( |
| ) |
|
|
override |
Read one byte form the channel.
- Returns
- Read and return one byte form the channel. The byte will be removed from the channel.
Definition at line 216 of file Shellminator-TcpSocket.cpp.
◆ resetVariables()
void ShellminatorTcpSocket::resetVariables |
( |
| ) |
|
|
private |
◆ update()
void ShellminatorTcpSocket::update |
( |
| ) |
|
◆ write() [1/2]
size_t ShellminatorTcpSocket::write |
( |
const uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
|
override |
◆ write() [2/2]
size_t ShellminatorTcpSocket::write |
( |
uint8_t |
b | ) |
|
|
override |
Write one byte to the channel.
- Parameters
-
b | The value that has to be written to the channel. |
- Returns
- The number of bytes that has been successfully written to the channel. Because it is the base class, it returns 0.
Definition at line 249 of file Shellminator-TcpSocket.cpp.
◆ client
WiFiClient ShellminatorTcpSocket::client |
|
private |
◆ clientConnected
bool ShellminatorTcpSocket::clientConnected = false |
|
private |
◆ connectCallback
◆ dbg
Stream* ShellminatorTcpSocket::dbg = NULL |
|
private |
◆ disconnectCallback
◆ negotiationState
◆ port
int ShellminatorTcpSocket::port = 23 |
|
private |
◆ server
WiFiServer* ShellminatorTcpSocket::server |
|
private |
◆ streamBuffer
◆ streamBufferReadPointer
uint32_t ShellminatorTcpSocket::streamBufferReadPointer |
|
private |
◆ streamBufferWritePointer
uint32_t ShellminatorTcpSocket::streamBufferWritePointer |
|
private |
◆ TELNET_IAC_DO_SUPPRESS_GO_AHEAD
const uint8_t ShellminatorTcpSocket::TELNET_IAC_DO_SUPPRESS_GO_AHEAD = { 255, 253, 3 } |
|
staticprivate |
◆ TELNET_IAC_DONT_ECHO
const uint8_t ShellminatorTcpSocket::TELNET_IAC_DONT_ECHO = { 255, 254, 1 } |
|
staticprivate |
◆ TELNET_IAC_DONT_LINEMODE
const uint8_t ShellminatorTcpSocket::TELNET_IAC_DONT_LINEMODE = { 255, 254, 34 } |
|
staticprivate |
◆ TELNET_IAC_WILL_ECHO
const uint8_t ShellminatorTcpSocket::TELNET_IAC_WILL_ECHO = { 255, 251, 1 } |
|
staticprivate |
◆ TELNET_IAC_WILL_SUPPRESS_GO_AHEAD
const uint8_t ShellminatorTcpSocket::TELNET_IAC_WILL_SUPPRESS_GO_AHEAD = { 255, 251, 3 } |
|
staticprivate |