X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fbitcoinrpc.cpp;fp=src%2Fbitcoinrpc.cpp;h=89fc9b78865be63a479683c267cf3952cbeecb1b;hp=255b7cad26b467e9fc0fd9e3197f35941e96af14;hb=f9b7fa67c55bbf3f7d9d2fe1bb1b9a1bd9265860;hpb=bc0753c369cbf499e990541e723f737c62559803 diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 255b7ca..89fc9b7 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -614,6 +614,16 @@ void StartRPCServer() g_server->setOnConnectionCallback([](ix::HttpRequestPtr request, std::shared_ptr connectionState) -> ix::HttpResponsePtr { + // Build a string for the response + std::stringstream ss; + ss << connectionState->getRemoteIp() + << " " + << request->method + << " " + << request->uri; + + std::cout << ss.str() << std::endl; + ix::WebSocketHttpHeaders headers; if (request->method != "POST") { @@ -669,6 +679,9 @@ void StartRPCServer() return StartShutdown(); } + // Run listening thread + g_server->start(); + // We're listening now vnThreadsRunning[THREAD_RPCLISTENER]++; }