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

Method handle_ws_other

lib_acl_cpp/src/http/http_aclient.cpp:320–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320bool http_aclient::handle_ws_other()
321{
322 if (buff_ == NULL) {
323 buff_ = NEW string(1024);
324 }
325
326 while (true) {
327 int ret = ws_in_->peek_frame_data(*buff_, 1024);
328 switch (ret) {
329 case -1:
330 if (ws_in_->eof()) {
331 buff_->clear();
332 return false;
333 }
334 return true;
335 case 0:
336 buff_->clear();
337 return true;
338 default:
339 break;
340 }
341 }
342}
343
344bool http_aclient::handle_ws_data()
345{

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