MCPcopy Create free account
hub / github.com/acl-dev/acl / get_addr

Method get_addr

lib_acl_cpp/src/http/http_utils.cpp:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace acl {
9
10bool http_utils::get_addr(const char* url, char* addr, size_t size)
11{
12 char buf[256];
13 unsigned short port;
14
15 if (!get_addr(url, buf, sizeof(buf), &port)) {
16 return false;
17 }
18 safe_snprintf(addr, size, "%s:%d", buf, port);
19 return true;
20}
21
22#define HTTP_PREFIX "http://"
23#define HTTPS_PREFIX "https://"

Callers

nothing calls this directly

Calls 3

safe_snprintfFunction · 0.85
strncasecmpFunction · 0.85
get_addrFunction · 0.50

Tested by

no test coverage detected