MCPcopy Create free account
hub / github.com/Kitware/CMake / connect

Method connect

Utilities/cmcppdap/src/session.cpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 void connect(const std::shared_ptr<dap::Reader>& r,
70 const std::shared_ptr<dap::Writer>& w) override {
71 if (isBound.exchange(true)) {
72 handlers.error("Session::connect called twice");
73 return;
74 }
75
76 reader = dap::ContentReader(r, this->onInvalidData);
77 writer = dap::ContentWriter(w);
78 }
79
80 void startProcessingMessages(
81 const ClosedHandler& onClose /* = {} */) override {

Callers

nothing calls this directly

Calls 3

ContentReaderClass · 0.85
ContentWriterClass · 0.85
errorMethod · 0.45

Tested by

no test coverage detected