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

Method GetPeer

src/httpserver.cpp:615–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

http_request_cbFunction · 0.80
HTTPReq_JSONRPCFunction · 0.80

Calls 1

LookupNumericFunction · 0.85

Tested by

no test coverage detected