MCPcopy Create free account
hub / github.com/acl-dev/acl / handle_ws_pong

Method handle_ws_pong

lib_acl_cpp/src/http/http_aclient.cpp:295–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295bool http_aclient::handle_ws_pong()
296{
297 if (buff_ == NULL) {
298 buff_ = NEW string(1024);
299 }
300
301 while (true) {
302 int ret = ws_in_->peek_frame_data(*buff_, 1024);
303 switch (ret) {
304 case -1:
305 if (ws_in_->eof()) {
306 buff_->clear();
307 return false;
308 }
309 return true;
310 case 0:
311 this->on_ws_frame_pong(*buff_);
312 buff_->clear();
313 return true;
314 default:
315 break;
316 }
317 }
318}
319
320bool http_aclient::handle_ws_other()
321{

Callers

nothing calls this directly

Calls 4

peek_frame_dataMethod · 0.80
stringClass · 0.50
eofMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected