| 788 | |
| 789 | |
| 790 | const 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 | |
| 801 | int NetHandler::sizeOfIP() { |
no test coverage detected