MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / operator <

Method operator <

MonaBase/sources/SocketAddress.cpp:201–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201bool SocketAddress::operator < (const SocketAddress& address) const {
202 if (family() < address.family())
203 return true;
204 if (family() != address.family())
205 return false;
206 if (host() < address.host())
207 return true;
208 if (host() != address.host())
209 return false;
210 return (port() < address.port());
211}
212
213const IPAddress& SocketAddress::host() const {
214 return _pAddress->host();

Callers

nothing calls this directly

Calls 2

familyMethod · 0.45
portMethod · 0.45

Tested by

no test coverage detected