#include <torcwebsocketreader.h>
|
enum | OpCode {
OpContinuation = 0x0,
OpText = 0x1,
OpBinary = 0x2,
OpReserved3 = 0x3,
OpReserved4 = 0x4,
OpReserved5 = 0x5,
OpReserved6 = 0x6,
OpReserved7 = 0x7,
OpClose = 0x8,
OpPing = 0x9,
OpPong = 0xA,
OpReservedB = 0xB,
OpReservedC = 0xC,
OpReservedD = 0xD,
OpReservedE = 0xE,
OpReservedF = 0xF
} |
|
enum | CloseCode {
CloseNormal = 1000,
CloseGoingAway = 1001,
CloseProtocolError = 1002,
CloseUnsupportedDataType = 1003,
CloseReserved1004 = 1004,
CloseStatusCodeMissing = 1005,
CloseAbnormal = 1006,
CloseInconsistentData = 1007,
ClosePolicyViolation = 1008,
CloseMessageTooBig = 1009,
CloseMissingExtension = 1010,
CloseUnexpectedError = 1011,
CloseTLSHandshakeError = 1015
} |
|
enum | WSVersion {
VersionUnknown = -1,
Version0 = 0,
Version4 = 4,
Version5 = 5,
Version6 = 6,
Version7 = 7,
Version8 = 8,
Version13 = 13
} |
|
enum | WSSubProtocol { SubProtocolNone = (0 << 0),
SubProtocolJSONRPC = (1 << 0)
} |
|
Definition at line 10 of file torcwebsocketreader.h.
Enumerator |
---|
CloseNormal |
|
CloseGoingAway |
|
CloseProtocolError |
|
CloseUnsupportedDataType |
|
CloseReserved1004 |
|
CloseStatusCodeMissing |
|
CloseAbnormal |
|
CloseInconsistentData |
|
ClosePolicyViolation |
|
CloseMessageTooBig |
|
CloseMissingExtension |
|
CloseUnexpectedError |
|
CloseTLSHandshakeError |
|
Definition at line 35 of file torcwebsocketreader.h.
Enumerator |
---|
OpContinuation |
|
OpText |
|
OpBinary |
|
OpReserved3 |
|
OpReserved4 |
|
OpReserved5 |
|
OpReserved6 |
|
OpReserved7 |
|
OpClose |
|
OpPing |
|
OpPong |
|
OpReservedB |
|
OpReservedC |
|
OpReservedD |
|
OpReservedE |
|
OpReservedF |
|
Definition at line 15 of file torcwebsocketreader.h.
Enumerator |
---|
VersionUnknown |
|
Version0 |
|
Version4 |
|
Version5 |
|
Version6 |
|
Version7 |
|
Version8 |
|
Version13 |
|
Definition at line 52 of file torcwebsocketreader.h.
TorcWebSocketReader::TorcWebSocketReader |
( |
QTcpSocket & |
Socket, |
|
|
WSSubProtocol |
Protocol, |
|
|
bool |
ServerSide |
|
) |
| |
|
protected |
TorcWebSocketReader::~TorcWebSocketReader |
( |
| ) |
|
|
protecteddefault |
QString TorcWebSocketReader::CloseCodeToString |
( |
CloseCode |
Code | ) |
|
|
staticprotected |
bool TorcWebSocketReader::CloseSent |
( |
void |
| ) |
|
|
protected |
void TorcWebSocketReader::EnableEcho |
( |
void |
| ) |
|
|
protected |
const QByteArray & TorcWebSocketReader::GetPayload |
( |
void |
| ) |
|
|
protected |
void TorcWebSocketReader::InitiateClose |
( |
CloseCode |
Close, |
|
|
const QString & |
Reason |
|
) |
| |
|
protected |
QString TorcWebSocketReader::OpCodeToString |
( |
OpCode |
Code | ) |
|
|
staticprotected |
bool TorcWebSocketReader::Read |
( |
void |
| ) |
|
|
protected |
void TorcWebSocketReader::Reset |
( |
void |
| ) |
|
|
protected |
void TorcWebSocketReader::SendFrame |
( |
OpCode |
Code, |
|
|
QByteArray & |
Payload |
|
) |
| |
|
protected |
void TorcWebSocketReader::SetSubProtocol |
( |
WSSubProtocol |
Protocol | ) |
|
|
protected |
TorcWebSocketReader::WSSubProtocols TorcWebSocketReader::SubProtocolsFromString |
( |
const QString & |
Protocols | ) |
|
|
staticprotected |
QString TorcWebSocketReader::SubProtocolsToString |
( |
WSSubProtocols |
Protocols | ) |
|
|
staticprotected |
The documentation for this class was generated from the following files: