MCPcopy Create free account
hub / github.com/dfranx/SHADERed / connect

Method connect

libs/cppdap/src/session.cpp:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 void connect(const std::shared_ptr<dap::Reader>& r,
66 const std::shared_ptr<dap::Writer>& w) override {
67 if (isBound.exchange(true)) {
68 handlers.error("Session is already bound!");
69 return;
70 }
71
72 reader = dap::ContentReader(r);
73 writer = dap::ContentWriter(w);
74 }
75
76 void startProcessingMessages() override {
77 recvThread = std::thread([this] {

Callers

nothing calls this directly

Calls 3

ContentWriterClass · 0.85
ContentReaderClass · 0.70
errorMethod · 0.45

Tested by

no test coverage detected