|
| enum | SocketStatus { Disconnected
, Resolving
, Connecting
, Connected
} |
| |
| enum | SocketType { TCP = 0
, WEBSOCKET
, SECUREWEBSOCKET
} |
| |
|
|
void | newData (const char *buff, int len) |
| |
|
void | endOfRecord () |
| |
|
void | echoLocal (bool echo) |
| |
|
void | stateChanged (QAbstractSocket::SocketState s) |
| |
|
void | error (QAbstractSocket::SocketError err) |
| |
|
| enum | TelnetStateCodes {
STATE_DATA = (char)0
, STATE_IAC = (char)1
, STATE_IACSB = (char)2
, STATE_IACWILL = (char)3
,
STATE_IACDO = (char)4
, STATE_IACWONT = (char)5
, STATE_IACDONT = (char)6
, STATE_IACSBIAC = (char)7
,
STATE_IACSBDATA = (char)8
, STATE_IACSBDATAIAC = (char)9
, STATE_DATAR = (char)10
, STATE_DATAN = (char)11
} |
| |
| enum | TelnetCodes {
IAC = (char)255
, EOR = (char)239
, WILL = (char)251
, WONT = (char)252
,
DO = (char)253
, DONT = (char)254
, SB = (char)250
, SE = (char)240
,
TELOPT_BINARY = (char)0
, TELOPT_ECHO = (char)1
, TELOPT_SGA = (char)2
, TELOPT_EOR = (char)25
,
TELOPT_NAWS = (char)31
, TELOPT_TTYPE = (char)24
} |
| |
| enum | TelnetQualifiers { TELQUAL_IS = (char)0
, TELQUAL_SEND = (char)1
} |
| |
|
| static const char | IACWILL [2] = { IAC, WILL } |
| |
| static const char | IACWONT [2] = { IAC, WONT } |
| |
| static const char | IACDO [2] = { IAC, DO } |
| |
| static const char | IACDONT [2] = { IAC, DONT } |
| |
| static const char | IACSB [2] = { IAC, SB } |
| |
| static const char | IACSE [2] = { IAC, SE } |
| |
| static char | _sendCodeArray [2] = { IAC, 0 } |
| |
| static char | _arrCRLF [2] = { 13, 10 } |
| |
| static char | _arrCR [2] = { 13, 0 } |
| |
Definition at line 12 of file QTelnet.h.
◆ SocketStatus
| enum QTelnet::SocketStatus |
◆ SocketType
◆ TelnetCodes
| enum QTelnet::TelnetCodes |
|
protected |
◆ TelnetQualifiers
| enum QTelnet::TelnetQualifiers |
|
protected |
◆ TelnetStateCodes
| enum QTelnet::TelnetStateCodes |
|
protected |
◆ QTelnet() [1/2]
| QTelnet::QTelnet |
( |
SocketType |
type = TCP, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
◆ QTelnet() [2/2]
| QTelnet::QTelnet |
( |
QObject * |
parent = 0 | ) |
|
|
inlineexplicit |
◆ binaryMessageReceived
| void QTelnet::binaryMessageReceived |
( |
const QByteArray & |
message | ) |
|
|
privateslot |
◆ connectToHost()
| void QTelnet::connectToHost |
( |
const QString & |
hostName, |
|
|
quint16 |
port |
|
) |
| |
◆ disconnectFromHost()
| void QTelnet::disconnectFromHost |
( |
void |
| ) |
|
◆ doesReply()
| void QTelnet::doesReply |
( |
char |
action, |
|
|
char |
reply |
|
) |
| |
|
private |
◆ dontsReply()
| void QTelnet::dontsReply |
( |
char |
action, |
|
|
char |
reply |
|
) |
| |
|
private |
◆ doTelnetInProtocol()
| qint64 QTelnet::doTelnetInProtocol |
( |
qint64 |
buffSize | ) |
|
|
private |
◆ emitEchoLocal()
| void QTelnet::emitEchoLocal |
( |
bool |
bEcho | ) |
|
|
inlineprivate |
◆ emitEndOfRecord()
| void QTelnet::emitEndOfRecord |
( |
| ) |
|
|
inlineprivate |
◆ errorString()
| QString QTelnet::errorString |
( |
| ) |
|
◆ handleSB()
| void QTelnet::handleSB |
( |
void |
| ) |
|
|
private |
◆ isConnected()
| bool QTelnet::isConnected |
( |
| ) |
const |
◆ onStateChanged
| void QTelnet::onStateChanged |
( |
QAbstractSocket::SocketState |
s | ) |
|
|
privateslot |
◆ onTcpReadyRead
| void QTelnet::onTcpReadyRead |
( |
| ) |
|
|
privateslot |
◆ peerInfo()
| QString QTelnet::peerInfo |
( |
| ) |
const |
◆ peerName()
| QString QTelnet::peerName |
( |
| ) |
const |
◆ read()
| qint64 QTelnet::read |
( |
char * |
data, |
|
|
qint64 |
maxlen |
|
) |
| |
◆ resetProtocol()
| void QTelnet::resetProtocol |
( |
| ) |
|
|
private |
Resetea los datos del protocolo. Debe llamarse cada vez que se inicia una conexión nueva.
Definition at line 190 of file QTelnet.cpp.
◆ sendData() [1/2]
| void QTelnet::sendData |
( |
const char * |
data, |
|
|
int |
len |
|
) |
| |
◆ sendData() [2/2]
| void QTelnet::sendData |
( |
const QByteArray & |
ba | ) |
|
◆ sendSB()
| void QTelnet::sendSB |
( |
char |
code, |
|
|
char * |
arr, |
|
|
int |
iLen |
|
) |
| |
|
private |
◆ sendTelnetControl()
| void QTelnet::sendTelnetControl |
( |
char |
codigo | ) |
|
|
private |
◆ sendWindowSize()
| void QTelnet::sendWindowSize |
( |
| ) |
|
◆ setCustomCR()
| void QTelnet::setCustomCR |
( |
char |
cr = 10, |
|
|
char |
cr2 = 0 |
|
) |
| |
◆ setCustomCRLF()
| void QTelnet::setCustomCRLF |
( |
char |
lf = 13, |
|
|
char |
cr = 10 |
|
) |
| |
◆ setType()
| void QTelnet::setType |
( |
SocketType |
type | ) |
|
◆ setWindSize()
| void QTelnet::setWindSize |
( |
QSize |
s | ) |
|
|
inline |
◆ socketError
| void QTelnet::socketError |
( |
QAbstractSocket::SocketError |
err | ) |
|
|
privateslot |
◆ testBinaryMode()
| bool QTelnet::testBinaryMode |
( |
| ) |
const |
◆ transpose()
| void QTelnet::transpose |
( |
const char * |
buf, |
|
|
int |
iLen |
|
) |
| |
|
private |
◆ willsReply()
| void QTelnet::willsReply |
( |
char |
action, |
|
|
char |
reply |
|
) |
| |
|
private |
◆ wontsReply()
| void QTelnet::wontsReply |
( |
char |
action, |
|
|
char |
reply |
|
) |
| |
|
private |
◆ write() [1/2]
| qint64 QTelnet::write |
( |
const char * |
data, |
|
|
qint64 |
len |
|
) |
| |
◆ write() [2/2]
| void QTelnet::write |
( |
const char |
c | ) |
|
◆ writeCustomCR()
| void QTelnet::writeCustomCR |
( |
| ) |
|
◆ writeCustomCRLF()
| void QTelnet::writeCustomCRLF |
( |
| ) |
|
◆ _arrCR
| char QTelnet::_arrCR = { 13, 0 } |
|
staticprivate |
◆ _arrCRLF
| char QTelnet::_arrCRLF = { 13, 10 } |
|
staticprivate |
◆ _sendCodeArray
| char QTelnet::_sendCodeArray = { IAC, 0 } |
|
staticprivate |
◆ IACDO
| const char QTelnet::IACDO = { IAC, DO } |
|
staticprivate |
◆ IACDONT
| const char QTelnet::IACDONT = { IAC, DONT } |
|
staticprivate |
◆ IACSB
| const char QTelnet::IACSB = { IAC, SB } |
|
staticprivate |
◆ IACSE
| const char QTelnet::IACSE = { IAC, SE } |
|
staticprivate |
◆ IACWILL
| const char QTelnet::IACWILL = { IAC, WILL } |
|
staticprivate |
◆ IACWONT
| const char QTelnet::IACWONT = { IAC, WONT } |
|
staticprivate |
◆ m_actualSB
◆ m_buffIncoming
| char QTelnet::m_buffIncoming[IncommingBufferSize] |
|
private |
◆ m_buffProcessed
| char QTelnet::m_buffProcessed[IncommingBufferSize] |
|
private |
◆ m_buffSB
| QByteArray QTelnet::m_buffSB |
|
private |
◆ m_negotiationState
| enum TelnetStateCodes QTelnet::m_negotiationState |
|
private |
◆ m_oldWinSize
| QSize QTelnet::m_oldWinSize |
|
private |
◆ m_receivedDX
| char QTelnet::m_receivedDX[256] |
|
private |
◆ m_receivedWX
| char QTelnet::m_receivedWX[256] |
|
private |
◆ m_sentDX
| char QTelnet::m_sentDX[256] |
|
private |
◆ m_sentWX
| char QTelnet::m_sentWX[256] |
|
private |
◆ m_socketType
| SocketType QTelnet::m_socketType |
|
private |
◆ m_tcpSocket
| QTcpSocket QTelnet::m_tcpSocket |
|
private |
◆ m_webSocket
| QWebSocket QTelnet::m_webSocket |
|
private |
◆ m_winSize
The documentation for this class was generated from the following files:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Plugins/Telnet/QTelnet.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Plugins/Telnet/QTelnet.cpp