| 293 | } |
| 294 | |
| 295 | bool 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 | |
| 320 | bool http_aclient::handle_ws_other() |
| 321 | { |
nothing calls this directly
no test coverage detected