Lines Matching refs:ip
34 // Network ip/host handling functions
37 inline wxString Uint32toStringIP(uint32 ip)
39 return CFormat(wxT("%u.%u.%u.%u")) % (uint8)ip % (uint8)(ip>>8) % (uint8)(ip>>16) % (uint8)(ip>>24);
42 inline wxString Uint32_16toStringIP_Port(uint32 ip, uint16 port)
44 return CFormat(wxT("%u.%u.%u.%u:%u")) % (uint8)ip % (uint8)(ip>>8) % (uint8)(ip>>16) % (uint8)(ip>>24) % port;
48 inline wxString KadIPToString(uint32_t ip)
50 return CFormat(wxT("%u.%u.%u.%u")) % (uint8_t)(ip >> 24) % (uint8_t)(ip >> 16) % (uint8_t)(ip >> 8) % (uint8_t)ip;
53 inline wxString KadIPPortToString(uint32_t ip, uint16_t port)
55 return CFormat(wxT("%u.%u.%u.%u:%u")) % (uint8_t)(ip >> 24) % (uint8_t)(ip >> 16) % (uint8_t)(ip >> 8) % (uint8_t)ip % port;
61 * @param strIP A string-ip in the format "a.b.c.d".
66 * ip-address is ignored and the resulting IP is saved in
82 * @param strIP A string-ip in the format "a.b.c.d".
89 uint32 ip = 0;
90 StringIPtoUint32( strIP, ip );
92 return ip;
129 * @param ip The IP-address to check.
134 bool IsLanIP(uint32_t ip) throw();