|
@@ -135,6 +135,7 @@ uint32 host2ip(const char* hostname);
|
|
const char* ip2str(uint32 ip, char ip_str[16]);
|
|
const char* ip2str(uint32 ip, char ip_str[16]);
|
|
uint32 str2ip(const char* ip_str);
|
|
uint32 str2ip(const char* ip_str);
|
|
#define CONVIP(ip) ((ip)>>24)&0xFF,((ip)>>16)&0xFF,((ip)>>8)&0xFF,((ip)>>0)&0xFF
|
|
#define CONVIP(ip) ((ip)>>24)&0xFF,((ip)>>16)&0xFF,((ip)>>8)&0xFF,((ip)>>0)&0xFF
|
|
|
|
+#define MAKEIP(a,b,c,d) (uint32)( ( ( (a)&0xFF ) << 24 ) | ( ( (b)&0xFF ) << 16 ) | ( ( (c)&0xFF ) << 8 ) | ( ( (d)&0xFF ) << 0 ) )
|
|
uint16 ntows(uint16 netshort);
|
|
uint16 ntows(uint16 netshort);
|
|
|
|
|
|
int socket_getips(uint32* ips, int max);
|
|
int socket_getips(uint32* ips, int max);
|