MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / disconnect

Method disconnect

src/python_module/src/py_context.cpp:474–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void 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
485bool py_context::connect_remote(std::string host, uint16_t port) {
486 disconnect();

Callers 3

~actor_objectMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected