MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / setIntern

Method setIntern

MonaBase/sources/SocketAddress.cpp:176–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176bool SocketAddress::setIntern(Exception& ex,const char* hostAndPort,bool resolveHost) {
177 ASSERT_RETURN(hostAndPort,false);
178
179 const char* colon(strrchr(hostAndPort,':'));
180 if (!colon) {
181 ex.set(Exception::NETPORT, "Missing port number in ", hostAndPort);
182 return false;
183 }
184 (char&)*colon = 0;
185 bool result(setIntern(ex,hostAndPort, resolveService(ex,colon+1),resolveHost));
186 (char&)*colon = ':';
187 return result;
188}
189
190bool SocketAddress::setIntern(Exception& ex,const char* host, UInt16 port,bool resolveHost) {
191 IPAddress ip;

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
setWithDNSMethod · 0.45

Tested by

no test coverage detected