MCPcopy Create free account
hub / github.com/LUX-Core/lux / Command

Method Command

src/luxcontrol.cpp:237–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237bool LuxControlConnection::Command(const std::string &cmd, const ReplyHandlerCB& reply_handler)
238{
239 if (!b_conn)
240 return false;
241 struct evbuffer *buf = bufferevent_get_output(b_conn);
242 if (!buf)
243 return false;
244 evbuffer_add(buf, cmd.data(), cmd.size());
245 evbuffer_add(buf, "\r\n", 2);
246 reply_handlers.push_back(reply_handler);
247 return true;
248}
249
250static std::pair<std::string,std::string> SplitLuxReplyLine(const std::string &s)
251{

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