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

Method get_ip

lib_acl_cpp/src/stream/aio_stream.cpp:119–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119const char* aio_stream::get_ip(const char* addr, std::string& out)
120{
121 char buf[256];
122 if (acl_parse_hostaddr(addr, buf, sizeof(buf), NULL)) {
123 out = buf;
124 return out.c_str();
125 }
126 return "";
127}
128
129aio_handle& aio_stream::get_handle() const
130{

Callers 5

set_all_slotMethod · 0.45
set_all_slotMethod · 0.45
redis_slotMethod · 0.45
get_peerMethod · 0.45
get_localMethod · 0.45

Calls 2

acl_parse_hostaddrFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected