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

Function StartHTTPServer

src/httpserver.cpp:402–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402bool StartHTTPServer(boost::thread_group& threadGroup)
403{
404 LogPrint("http", "Starting HTTP server\n");
405 int rpcThreads = std::max((long)GetArg("-rpcthreads", DEFAULT_HTTP_THREADS), 1L);
406 LogPrintf("HTTP: starting %d worker threads\n", rpcThreads);
407 threadGroup.create_thread(boost::bind(&ThreadHTTP, eventBase, eventHTTP));
408
409 for (int i = 0; i < rpcThreads; i++)
410 threadGroup.create_thread(boost::bind(&HTTPWorkQueueRun, workQueue));
411 return true;
412}
413
414void InterruptHTTPServer()
415{

Callers 1

AppInitServersFunction · 0.85

Calls 1

GetArgFunction · 0.85

Tested by

no test coverage detected