The C++ framework for developing highly scalable, high performance servers on Windows platforms.

JetByteTools::WebSocket Namespace Reference


Classes

class  CAutoDetectProtocolHandler
class  CAutoDetectProtocolHandlerAllocator
class  CHandshakeParser
class  CHeaders
class  IAcceptWebSocketConnections
class  IConnectableProtocolHandler
class  IHandshakeParserCallback
class  IProtocolHandler
class  IProtocolHandlerFactory
class  IWebSocket
class  IWebSocketInputHandler
class  CProtocolHandlerFactory
class  CRequestHeaders
class  TWebSocketBase

Namespaces

namespace  HyBi

Typedefs

typedef
JetByteTools::Core::TReferenceCountedSmartPointer
< IWebSocket
CSmartWebSocket
 A smart pointer for stream sockets.

Enumerations

enum  ConnectionEstablishmentResult { ConnectionEstablished, ConnectionForbidden, ConnectionUpgradeRequired }
enum  FrameStatus { CompleteFrame, FirstFragment, Fragment, LastFragment }
enum  MessageStatus { MessageStatusIncomplete, MessageStatusComplete }
enum  MessageType { MessageTypeBinary, MessageTypeText }

Functions

static const string s_LineEnd ("\r\n")
static void SplitHeader (const string &header, string &key, string &value)
JetByteTools::Core::_tstring MessageTypeAsString (const MessageType type)

Variables

static const string s_WebSocketGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"
static const size_t s_maxHeadersInRequest = 100
static const size_t s_maxLengthOfHeader = 8190
static const string s_SecWebSocketOrigin = "Sec-WebSocket-Origin"
static const string s_Origin = "Origin"
static const string s_Connection = "Connection"
static const string s_Upgrade = "Upgrade"
static const string s_UpgradeValue = "WebSocket"
static const string s_ConnectionValue = "Upgrade"


Typedef Documentation


Enumeration Type Documentation

Enumerator:
ConnectionEstablished 
ConnectionForbidden 
ConnectionUpgradeRequired 

Enumerator:
CompleteFrame 
FirstFragment 
Fragment 
LastFragment 

Enumerator:
MessageStatusIncomplete 
MessageStatusComplete 

Enumerator:
MessageTypeBinary 
MessageTypeText 


Function Documentation

JetByteTools::Core::_tstring MessageTypeAsString ( const MessageType  type  ) 

static const string JetByteTools::WebSocket::s_LineEnd ( "\r\n"   )  [static]

static void SplitHeader ( const string &  header,
string &  key,
string &  value 
) [static]


Variable Documentation

const string s_Connection = "Connection" [static]

const string s_ConnectionValue = "Upgrade" [static]

const size_t s_maxHeadersInRequest = 100 [static]

const size_t s_maxLengthOfHeader = 8190 [static]

const string s_Origin = "Origin" [static]

const string s_SecWebSocketOrigin = "Sec-WebSocket-Origin" [static]

const string s_Upgrade = "Upgrade" [static]

const string s_UpgradeValue = "WebSocket" [static]

const string s_WebSocketGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" [static]


Generated on Sun Sep 12 19:11:23 2021 for The Server Framework - v7.4 by doxygen 1.5.3