|
Rabbit Remote Control 0.1.0-bate14
|


Public Types | |
| enum | SocketStatus { Disconnected , Resolving , Connecting , Connected } |
| enum | SocketType { TCP = 0 , WEBSOCKET , SECUREWEBSOCKET } |
Signals | |
| void | newData (const char *buff, int len) |
| void | endOfRecord () |
| void | echoLocal (bool echo) |
| void | stateChanged (QAbstractSocket::SocketState s) |
| void | error (QAbstractSocket::SocketError err) |
Public Member Functions | |
| QTelnet (SocketType type=TCP, QObject *parent=0) | |
| QTelnet (QObject *parent=0) | |
| void | setType (SocketType type) |
| void | connectToHost (const QString &hostName, quint16 port) |
| void | disconnectFromHost (void) |
| void | sendData (const QByteArray &ba) |
| void | sendData (const char *data, int len) |
| void | setCustomCRLF (char lf=13, char cr=10) |
| void | setCustomCR (char cr=10, char cr2=0) |
| void | writeCustomCRLF () |
| void | writeCustomCR () |
| void | write (const char c) |
| qint64 | write (const char *data, qint64 len) |
| qint64 | read (char *data, qint64 maxlen) |
| bool | isConnected () const |
| bool | testBinaryMode () const |
| void | setWindSize (QSize s) |
| void | sendWindowSize () |
| QString | peerInfo () const |
| QString | peerName () const |
| QString | errorString () |
Private Slots | |
| void | socketError (QAbstractSocket::SocketError err) |
| void | onTcpReadyRead () |
| void | binaryMessageReceived (const QByteArray &message) |
| void | onStateChanged (QAbstractSocket::SocketState s) |
Private Member Functions | |
| void | resetProtocol () |
| Resetea los datos del protocolo. Debe llamarse cada vez que se inicia una conexión nueva. | |
| void | emitEndOfRecord () |
| void | emitEchoLocal (bool bEcho) |
| void | sendTelnetControl (char codigo) |
| void | handleSB (void) |
| void | transpose (const char *buf, int iLen) |
| void | willsReply (char action, char reply) |
| void | wontsReply (char action, char reply) |
| void | doesReply (char action, char reply) |
| void | dontsReply (char action, char reply) |
| void | sendSB (char code, char *arr, int iLen) |
| qint64 | doTelnetInProtocol (qint64 buffSize) |
Private Attributes | |
| QTcpSocket | m_tcpSocket |
| QWebSocket | m_webSocket |
| SocketType | m_socketType |
| QSize | m_winSize |
| QSize | m_oldWinSize |
| enum TelnetStateCodes | m_negotiationState |
| char | m_receivedDX [256] |
| char | m_receivedWX [256] |
| char | m_sentDX [256] |
| char | m_sentWX [256] |
| char | m_buffIncoming [IncommingBufferSize] |
| char | m_buffProcessed [IncommingBufferSize] |
| QByteArray | m_buffSB |
| int | m_actualSB |
Static Private Attributes | |
| 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 } |
|
explicit |
Definition at line 15 of file QTelnet.cpp.
|
privateslot |
Definition at line 630 of file QTelnet.cpp.
| void QTelnet::connectToHost | ( | const QString & | hostName, |
| quint16 | port ) |
Definition at line 68 of file QTelnet.cpp.
| void QTelnet::disconnectFromHost | ( | void | ) |
Definition at line 85 of file QTelnet.cpp.
|
private |
Definition at line 324 of file QTelnet.cpp.
|
private |
Definition at line 338 of file QTelnet.cpp.
|
private |
Definition at line 353 of file QTelnet.cpp.
| QString QTelnet::errorString | ( | ) |
Definition at line 150 of file QTelnet.cpp.
|
private |
Definition at line 233 of file QTelnet.cpp.
| bool QTelnet::isConnected | ( | ) | const |
Definition at line 58 of file QTelnet.cpp.
|
privateslot |
Definition at line 635 of file QTelnet.cpp.
|
privateslot |
Definition at line 608 of file QTelnet.cpp.
| QString QTelnet::peerInfo | ( | ) | const |
Definition at line 38 of file QTelnet.cpp.
| QString QTelnet::peerName | ( | ) | const |
Definition at line 48 of file QTelnet.cpp.
| qint64 QTelnet::read | ( | char * | data, |
| qint64 | maxlen ) |
Definition at line 115 of file QTelnet.cpp.
|
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.
| void QTelnet::sendData | ( | const char * | data, |
| int | len ) |
Definition at line 138 of file QTelnet.cpp.
| void QTelnet::sendData | ( | const QByteArray & | ba | ) |
Definition at line 132 of file QTelnet.cpp.
|
private |
Definition at line 206 of file QTelnet.cpp.
|
private |
Definition at line 173 of file QTelnet.cpp.
| void QTelnet::sendWindowSize | ( | ) |
Definition at line 217 of file QTelnet.cpp.
| void QTelnet::setCustomCR | ( | char | cr = 10, |
| char | cr2 = 0 ) |
Definition at line 160 of file QTelnet.cpp.
| void QTelnet::setCustomCRLF | ( | char | lf = 13, |
| char | cr = 10 ) |
Definition at line 166 of file QTelnet.cpp.
| void QTelnet::setType | ( | SocketType | type | ) |
Definition at line 30 of file QTelnet.cpp.
|
privateslot |
Definition at line 144 of file QTelnet.cpp.
| bool QTelnet::testBinaryMode | ( | ) | const |
Definition at line 127 of file QTelnet.cpp.
|
private |
Definition at line 256 of file QTelnet.cpp.
|
private |
Definition at line 296 of file QTelnet.cpp.
|
private |
Definition at line 310 of file QTelnet.cpp.
| qint64 QTelnet::write | ( | const char * | data, |
| qint64 | len ) |
Definition at line 103 of file QTelnet.cpp.
| void QTelnet::write | ( | const char | c | ) |
Definition at line 93 of file QTelnet.cpp.
| void QTelnet::writeCustomCR | ( | ) |
Definition at line 184 of file QTelnet.cpp.
| void QTelnet::writeCustomCRLF | ( | ) |
Definition at line 179 of file QTelnet.cpp.