CFx SDK Documentation  2020SP3
FxNAWebSocketProtocol.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 #pragma once
18 
20 {
21 enum Version
22 {
27  Version0 = 0,
28  //hybi-01, hybi-02 and hybi-03 not supported
29  Version4 = 4,
30 
31  Version5 = 5,
32  Version6 = 6,
33  Version7 = 7,
34  Version8 = 8,
35  Version13 = 13,
37 };
38 
43 {
44  CloseCodeNormal = 1000,
57 };
58 
59 //...
60 
61 } //end namespace CFxNAWebSocketProtocol
CFxNAWebSocketProtocol::CloseCodePolicyViolated
@ CloseCodePolicyViolated
Policy violation.
Definition: FxNAWebSocketProtocol.h:52
CFxNAWebSocketProtocol::Version5
@ Version5
hybi-04. Changed handshake: key1, key2, key3 ==> Sec-WebSocket-Key, Sec-WebSocket-Nonce,...
Definition: FxNAWebSocketProtocol.h:31
CFxNAWebSocketProtocol::Version
Version
Definition: FxNAWebSocketProtocol.h:22
CFxNAWebSocketProtocol::CloseCodeTooMuchData
@ CloseCodeTooMuchData
Message too big.
Definition: FxNAWebSocketProtocol.h:53
CFxNAWebSocketProtocol::Version0
@ Version0
hixie76 and hybi-00. Works with key1, key2 and a key in the payload. Attribute: Sec-WebSocket-Draft v...
Definition: FxNAWebSocketProtocol.h:27
CFxNAWebSocketProtocol::Version7
@ Version7
hybi-07. Sec-WebSocket-Version = 7. Not supported by CFxNAWebSockets.
Definition: FxNAWebSocketProtocol.h:33
CFxNAWebSocketProtocol::CloseCodeMissingStatusCode
@ CloseCodeMissingStatusCode
No status received.
Definition: FxNAWebSocketProtocol.h:49
CFxNAWebSocketProtocol::CloseCodeDatatypeNotSupported
@ CloseCodeDatatypeNotSupported
Definition: FxNAWebSocketProtocol.h:47
CFxNAWebSocketProtocol::Version6
@ Version6
Sec-WebSocket-Version = 6. Not supported by CFxNAWebSockets.
Definition: FxNAWebSocketProtocol.h:32
CFxNAWebSocketProtocol::CloseCodeProtocolError
@ CloseCodeProtocolError
Protocol error.
Definition: FxNAWebSocketProtocol.h:46
CFxNAWebSocketProtocol::CloseCodeReserved1004
@ CloseCodeReserved1004
Unsupported data.
Definition: FxNAWebSocketProtocol.h:48
CFxNAWebSocketProtocol::CloseCodeTlsHandshakeFailed
@ CloseCodeTlsHandshakeFailed
TLS handshake failed.
Definition: FxNAWebSocketProtocol.h:56
CFxNAWebSocketProtocol::CloseCodeNormal
@ CloseCodeNormal
Normal closure.
Definition: FxNAWebSocketProtocol.h:44
CFxNAWebSocketProtocol::VersionLatest
@ VersionLatest
Refers to the latest known version to CFxNAWebSockets.
Definition: FxNAWebSocketProtocol.h:36
CFxNAWebSocketProtocol::VersionUnknown
@ VersionUnknown
Unknown or unspecified version.
Definition: FxNAWebSocketProtocol.h:26
CFxNAWebSocketProtocol::CloseCodeGoingAway
@ CloseCodeGoingAway
Going away.
Definition: FxNAWebSocketProtocol.h:45
CFxNAWebSocketProtocol::CloseCodeMissingExtension
@ CloseCodeMissingExtension
Mandatory extension missing.
Definition: FxNAWebSocketProtocol.h:54
CFxNAWebSocketProtocol::Version8
@ Version8
hybi-8, hybi-9, hybi-10, hybi-11 and hybi-12. Status codes 1005 and 1006 are added and all codes are ...
Definition: FxNAWebSocketProtocol.h:34
CFxNAWebSocketProtocol
Definition: FxNAWebSocketProtocol.h:20
CFxNAWebSocketProtocol::Version13
@ Version13
hybi-13, hybi14, hybi-15, hybi-16, hybi-17 and RFC 6455. Sec-WebSocket-Version = 13 Status code 1004 ...
Definition: FxNAWebSocketProtocol.h:35
CFxNAWebSocketProtocol::CloseCodeWrongDatatype
@ CloseCodeWrongDatatype
Invalid frame payload data.
Definition: FxNAWebSocketProtocol.h:51
CFxNAWebSocketProtocol::CloseCode
CloseCode
Definition: FxNAWebSocketProtocol.h:43
CFxNAWebSocketProtocol::CloseCodeBadOperation
@ CloseCodeBadOperation
Internal server error.
Definition: FxNAWebSocketProtocol.h:55
CFxNAWebSocketProtocol::Version4
@ Version4
Definition: FxNAWebSocketProtocol.h:29
CFxNAWebSocketProtocol::CloseCodeAbnormalDisconnection
@ CloseCodeAbnormalDisconnection
Abnormal closure.
Definition: FxNAWebSocketProtocol.h:50