MCPcopy Create free account
hub / github.com/chen3feng/toft / GetFirstLocalAddress

Method GetFirstLocalAddress

system/net/ip_address.cpp:156–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156bool IpAddress::GetFirstLocalAddress(IpAddress* a)
157{
158 std::vector<IpAddress> v;
159 if (GetLocalList(&v)) {
160 *a = v[0];
161 return true;
162 }
163 return false;
164}
165
166bool IpAddress::GetFirstPrivateAddress(IpAddress* a)
167{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected