MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / StartHTTPRPC

Function StartHTTPRPC

src/httprpc.cpp:162–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162bool StartHTTPRPC()
163{
164 LogPrint("rpc", "Starting HTTP RPC server\n");
165 if (!InitRPCAuthentication())
166 return false;
167
168 RegisterHTTPHandler("/", true, HTTPReq_JSONRPC);
169
170 assert(EventBase());
171 httpRPCTimerInterface = new HTTPRPCTimerInterface(EventBase());
172 RPCRegisterTimerInterface(httpRPCTimerInterface);
173 return true;
174}
175
176void InterruptHTTPRPC()
177{

Callers 1

AppInitServersFunction · 0.85

Calls 4

InitRPCAuthenticationFunction · 0.85
RegisterHTTPHandlerFunction · 0.85
EventBaseFunction · 0.85

Tested by

no test coverage detected