MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / connect

Method connect

3rdparty/cppdap/src/session.cpp:72–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 }
71
72 void connect(const std::shared_ptr<dap::Reader>& r,
73 const std::shared_ptr<dap::Writer>& w) override {
74 if (isBound.exchange(true)) {
75 handlers.error("Session is already bound!");
76 return;
77 }
78
79 reader = dap::ContentReader(r);
80 writer = dap::ContentWriter(w);
81 }
82
83 void startProcessingMessages() override {
84 recvThread = std::thread([this] {

Callers

nothing calls this directly

Calls 3

ContentReaderClass · 0.85
ContentWriterClass · 0.85
errorMethod · 0.80

Tested by

no test coverage detected