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

Method connect

src/embedded_python/src/embedded_python.cpp:165–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165bool EmbeddedPython::connect(const int port) {
166 try {
167 exec(R"(
168XSTUDIO = Connection(
169 debug=False
170)
171)");
172 exec(
173 R"(
174XSTUDIO.connect_remote(
175 "127.0.0.1",
176 )" + std::to_string(port) +
177 R"(
178)
179)");
180
181 exec("XSTUDIO.load_python_plugins()");
182
183 } catch (const std::exception &err) {
184 spdlog::warn("{} Failed to init API : {} ", __PRETTY_FUNCTION__, err.what());
185 return false;
186 }
187 return true;
188}
189
190bool EmbeddedPython::connect(caf::actor actor) {
191 try {

Callers 11

setTimeoutFunction · 0.80
promise.jsFile · 0.80
delayCallbackFunction · 0.80
TESTFunction · 0.80
main_loopMethod · 0.80
__init__Method · 0.80
media_addedMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
media_addedMethod · 0.80
__init__Method · 0.80

Calls 2

whatMethod · 0.80
to_stringFunction · 0.50

Tested by 1

TESTFunction · 0.64