MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Command

Method Command

src/torcontrol.cpp:233–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233bool TorControlConnection::Command(const std::string &cmd, const ReplyHandlerCB& reply_handler)
234{
235 if (!b_conn)
236 return false;
237 struct evbuffer *buf = bufferevent_get_output(b_conn);
238 if (!buf)
239 return false;
240 evbuffer_add(buf, cmd.data(), cmd.size());
241 evbuffer_add(buf, "\r\n", 2);
242 reply_handlers.push_back(reply_handler);
243 return true;
244}
245
246/****** General parsing utilities ********/
247

Callers 4

auth_cbMethod · 0.80
authchallenge_cbMethod · 0.80
protocolinfo_cbMethod · 0.80
connected_cbMethod · 0.80

Calls 3

dataMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected