MCPcopy Create free account
hub / github.com/ElementsProject/elements / Command

Method Command

src/torcontrol.cpp:176–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176bool TorControlConnection::Command(const std::string &cmd, const ReplyHandlerCB& reply_handler)
177{
178 if (!b_conn)
179 return false;
180 struct evbuffer *buf = bufferevent_get_output(b_conn);
181 if (!buf)
182 return false;
183 evbuffer_add(buf, cmd.data(), cmd.size());
184 evbuffer_add(buf, "\r\n", 2);
185 reply_handlers.push_back(reply_handler);
186 return true;
187}
188
189/****** General parsing utilities ********/
190

Callers 4

auth_cbMethod · 0.45
authchallenge_cbMethod · 0.45
protocolinfo_cbMethod · 0.45
connected_cbMethod · 0.45

Calls 3

dataMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected