MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetPeer

Method GetPeer

src/httpserver.cpp:613–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613CService HTTPRequest::GetPeer()
614{
615 evhttp_connection* con = evhttp_request_get_connection(req);
616 CService peer;
617 if (con) {
618 // evhttp retains ownership over returned address string
619 const char* address = "";
620 uint16_t port = 0;
621 evhttp_connection_get_peer(con, (char**)&address, &port);
622 peer = LookupNumeric(address, port);
623 }
624 return peer;
625}
626
627std::string HTTPRequest::GetURI()
628{

Callers 2

http_request_cbFunction · 0.80
HTTPReq_JSONRPCFunction · 0.80

Calls 1

LookupNumericFunction · 0.85

Tested by

no test coverage detected