ipv4.h

00001 #ifndef NET__IPV4__H__
00002 #define NET__IPV4__H__
00003 
00004 #include <sysdeps.h>
00005 
00011 typedef struct {
00013   uint8 addr[4];
00014 } ipv4addr;
00016 typedef uint16 ipv4port;
00017 
00018 extern const ipv4addr IPV4ADDR_ANY;
00019 extern const ipv4addr IPV4ADDR_BROADCAST;
00020 extern const ipv4addr IPV4ADDR_LOOPBACK;
00021 
00022 extern int ipv4_parse(const char* s, ipv4addr* addr, const char** end) __attribute__((__deprecated__));
00023 extern const char* ipv4_scan(const char* s, ipv4addr* addr);
00024 extern const char* ipv4_format(const ipv4addr* addr);
00025 extern unsigned fmt_ipv4addr(char* buffer, const ipv4addr* addr);
00026 
00029 #endif

Generated on Thu Feb 19 11:11:50 2009 for bglibs by  doxygen 1.5.4