| 420 | } |
| 421 | |
| 422 | void ImplPosix::SendToken() |
| 423 | { |
| 424 | if (this->Conn == Connection::None) { |
| 425 | return; |
| 426 | } |
| 427 | |
| 428 | static char token = '.'; |
| 429 | |
| 430 | uv_buf_t const buf = uv_buf_init(&token, sizeof(token)); |
| 431 | int status = cm::uv_write(this->GetWriter(), &buf, 1, this->OnWrite); |
| 432 | if (status != 0) { |
| 433 | this->Disconnect(status); |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | void ImplPosix::StartReceivingTokens() |
| 438 | { |
no test coverage detected