This repository was archived by the owner on Oct 25, 2021. It is now read-only.
File tree 3 files changed +1824
-3
lines changed
3 files changed +1824
-3
lines changed Original file line number Diff line number Diff line change @@ -113,3 +113,6 @@ Log.txt
113
113
# Vim backup and swap files:
114
114
* ~
115
115
* .swp
116
+
117
+ # Generated documentation
118
+ doc /
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 5
5
6
6
#include < QByteArray>
7
7
8
+ /* !
9
+ * Represents a frame sent over the the WebSocket connection.
10
+ *
11
+ * See also [RFC 6455, Section 5](http://tools.ietf.org/html/rfc6455#section-5).
12
+ */
8
13
class QWsFrame
9
14
{
10
-
11
15
public:
12
-
13
16
QWsFrame ();
17
+
18
+
19
+ /* !
20
+ * Clears the payload
21
+ */
14
22
void clear ();
15
- QByteArray data () const ;
23
+
24
+
25
+ /* !
26
+ * Performs various checks on the integrity of the frame as required by
27
+ * RFC 6455
28
+ */
16
29
bool valid () const ;
30
+
31
+ /* !
32
+ * Returns the unmaksed payload
33
+ */
17
34
QByteArray unmask () const ;
35
+
36
+
37
+ /* !
38
+ * Returns true if the opcode is a control code
39
+ */
18
40
bool controlFrame () const ;
19
41
42
+
43
+ /* !
44
+ * Tells us how many of the data fields have already been initialized
45
+ */
20
46
QWsSocket::EReadingState readingState;
21
47
22
48
bool final ;
You can’t perform that action at this time.
0 commit comments