| 318 | } |
| 319 | |
| 320 | bool 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 | |
| 344 | bool http_aclient::handle_ws_data() |
| 345 | { |
nothing calls this directly
no test coverage detected