Crow  1.1
A C++ microframework for the web
crow::websocket Namespace Reference

Namespace that includes the Connection class and connection struct. Useful for WebSockets connection. More...

Classes

struct  connection
 A base class for websocket connection. More...
 
class  Connection
 A websocket connection. More...
 

Enumerations

enum class  WebSocketReadState {
  MiniHeader , Len16 , Len64 , Mask ,
  Payload
}
 
enum  CloseStatusCode : uint16_t {
  NormalClosure = 1000 , EndpointGoingAway = 1001 , ProtocolError = 1002 , UnacceptableData = 1003 ,
  InconsistentData = 1007 , PolicyViolated = 1008 , MessageTooBig = 1009 , ExtensionsNotNegotiated = 1010 ,
  UnexpectedCondition = 1011 , NoStatusCodePresent = 1005 , ClosedAbnormally = 1006 , TLSHandshakeFailure = 1015 ,
  StartStatusCodesForLibraries = 3000 , StartStatusCodesForPrivateUse = 4000 , StartStatusCodes = NormalClosure , EndStatusCodes = 4999
}
 

Detailed Description

Namespace that includes the Connection class and connection struct. Useful for WebSockets connection.

Used specially in crow/websocket.h, crow/app.h and crow/routing.h