CFx SDK Documentation  2022 SP0
FxNAWebSocketProtocol.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2021 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
@ CloseCodeReserved1004
Unsupported data.
@ CloseCodeNormal
Normal closure.
@ CloseCodeTlsHandshakeFailed
TLS handshake failed.
@ CloseCodeWrongDatatype
Invalid frame payload data.
@ CloseCodePolicyViolated
Policy violation.
@ CloseCodeMissingStatusCode
No status received.
@ CloseCodeAbnormalDisconnection
Abnormal closure.
@ CloseCodeBadOperation
Internal server error.
@ CloseCodeTooMuchData
Message too big.
@ CloseCodeMissingExtension
Mandatory extension missing.
@ CloseCodeProtocolError
Protocol error.
@ Version8
hybi-8, hybi-9, hybi-10, hybi-11 and hybi-12. Status codes 1005 and 1006 are added and all codes are ...
@ Version6
Sec-WebSocket-Version = 6. Not supported by CFxNAWebSockets.
@ Version7
hybi-07. Sec-WebSocket-Version = 7. Not supported by CFxNAWebSockets.
@ VersionUnknown
Unknown or unspecified version.
@ Version5
hybi-04. Changed handshake: key1, key2, key3 ==> Sec-WebSocket-Key, Sec-WebSocket-Nonce,...
@ Version13
hybi-13, hybi14, hybi-15, hybi-16, hybi-17 and RFC 6455. Sec-WebSocket-Version = 13 Status code 1004 ...
@ VersionLatest
Refers to the latest known version to CFxNAWebSockets.
@ Version0
hixie76 and hybi-00. Works with key1, key2 and a key in the payload. Attribute: Sec-WebSocket-Draft v...