MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / getAddrName

Method getAddrName

src/game/ServerItem.cpp:230–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230std::string ServerItem::getAddrName() const {
231 if (name.size() <= 0) {
232 return std::string("");
233 }
234 return TextUtils::format("%s:%d", name.c_str(), ntohs(ping.serverId.port));
235}
236
237unsigned int ServerItem::getSortFactor() const {
238 // if null ping we return a 0 player count

Callers 5

addToListMethod · 0.80
markAsRecentMethod · 0.80
unmarkAsRecentMethod · 0.80
markAsFavoriteMethod · 0.80
unmarkAsFavoriteMethod · 0.80

Calls 3

c_strMethod · 0.80
formatFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected