MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / lookup

Method lookup

source/core/StarHostAddress.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19Either<String, HostAddress> HostAddress::lookup(String const& address) {
20 try {
21 HostAddress ha;
22 ha.set(address);
23 return makeRight(std::move(ha));
24 } catch (NetworkException const& e) {
25 return makeLeft(String(e.what()));
26 }
27}
28
29HostAddress::HostAddress(NetworkMode mode, uint8_t* address) {
30 set(mode, address);

Callers

nothing calls this directly

Calls 9

makeRightFunction · 0.85
makeLeftFunction · 0.85
StringClass · 0.85
HostAddressWithPortClass · 0.85
isLeftMethod · 0.80
leftMethod · 0.80
rightMethod · 0.80
setMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected