MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / StopRPCServer

Function StopRPCServer

src/rpc/core/rpcserver.cpp:343–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343void StopRPCServer() {
344 LogPrint(BCLog::INFO, "Stopping HTTP RPC server\n");
345 UnregisterHTTPHandler("/", true);
346
347 if (httpRPCTimerInterface) {
348 RPCUnsetTimerInterface(httpRPCTimerInterface.get());
349 httpRPCTimerInterface.reset();
350 }
351 StopHTTPServer();
352 FinalizeHTTPServer();
353}
354
355void RPCRunLater(const std::string& name, std::function<void()> func, int64_t nSeconds) {
356 if (!timerInterface)

Callers 2

ShutdownFunction · 0.85
StartRPCServerFunction · 0.85

Calls 6

UnregisterHTTPHandlerFunction · 0.85
RPCUnsetTimerInterfaceFunction · 0.85
StopHTTPServerFunction · 0.85
FinalizeHTTPServerFunction · 0.85
getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected