| 472 | } |
| 473 | |
| 474 | void py_context::disconnect() { |
| 475 | |
| 476 | host_ = ""; |
| 477 | port_ = 0; |
| 478 | remote_ = actor(); |
| 479 | embedded_python_actor_ = caf::actor(); |
| 480 | self_->send_exit(message_callback_handler_actor_, caf::exit_reason::user_shutdown); |
| 481 | message_callback_handler_actor_ = caf::actor(); |
| 482 | message_callback_funcs_.clear(); |
| 483 | } |
| 484 | |
| 485 | bool py_context::connect_remote(std::string host, uint16_t port) { |
| 486 | disconnect(); |
no test coverage detected