line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
MODULE = Protocol::WebSocket::Fast PACKAGE = Protocol::WebSocket::Fast::ServerParser |
2
|
|
|
|
|
|
|
PROTOTYPES: DISABLE |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
BOOT { |
5
|
18
|
50
|
|
|
|
|
Stash(__PACKAGE__).inherit("Protocol::WebSocket::Fast::Parser"); |
|
|
50
|
|
|
|
|
|
6
|
|
|
|
|
|
|
} |
7
|
|
|
|
|
|
|
|
8
|
194
|
|
|
|
|
|
ServerParser* ServerParser::new (Parser::Config cfg = {}) |
9
|
97
|
50
|
|
|
|
|
|
10
|
122
|
50
|
|
|
|
|
bool ServerParser::accept_parsed () |
|
|
50
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
27
|
|
|
|
|
|
bool ServerParser::accepted () |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
ConnectRequestSP ServerParser::accept (string buf) { |
15
|
588
|
|
|
|
|
|
RETVAL = THIS->accept(buf); |
16
|
294
|
50
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
string ServerParser::accept_error (panda::protocol::http::ResponseSP res = nullptr) { |
19
|
9
|
100
|
|
|
|
|
if (!res) RETVAL = THIS->accept_error(); |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
20
|
3
|
50
|
|
|
|
|
else RETVAL = THIS->accept_error(res); |
|
|
50
|
|
|
|
|
|
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
string ServerParser::accept_response (ConnectResponseSP res = nullptr) { |
24
|
206
|
100
|
|
|
|
|
if (!res) RETVAL = THIS->accept_response(); |
|
|
50
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
25
|
1
|
50
|
|
|
|
|
else RETVAL = THIS->accept_response(res); |
|
|
50
|
|
|
|
|
|
26
|
|
|
|
|
|
|
} |