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

Method getTargetIP

src/game/NetHandler.cpp:790–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788
789
790const char* NetHandler::getTargetIP() {
791 /* peer->getDotNotation returns a temp variable that is not safe
792 * to pass around. we keep a copy in allocated memory for safety.
793 */
794 if (dotNotation.size() == 0) {
795 dotNotation = peer.getDotNotation();
796 }
797 return dotNotation.c_str();
798}
799
800
801int NetHandler::sizeOfIP() {

Callers 10

addMeMethod · 0.80
operator()Method · 0.80
sendAdminInfoMessageFunction · 0.80
handleCommandFunction · 0.80
addPlayerFunction · 0.80
APIPlayerFromRecordFunction · 0.80
bz_getPlayerIPAddressFunction · 0.80
executeMethod · 0.80
executeMethod · 0.80
operator()Method · 0.80

Calls 3

getDotNotationMethod · 0.80
c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected