Returns an IP address and port as a string */
| 676 | |
| 677 | /** Returns an IP address and port as a string */ |
| 678 | std::string IpAndPortToString( uint32_t unIpH, uint16_t usPortH ) |
| 679 | { |
| 680 | uint8_t *ip = ( uint8_t * )&unIpH; |
| 681 | return Format( "%d.%d.%d.%d:%u", ip[ 3 ], ip[ 2 ], ip[ 1 ], ip[ 0 ], usPortH ); |
| 682 | } |
| 683 | |
| 684 |