Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Related Pages

ipv4.h

00001 /* $Id: ipv4.h 616 2005-08-19 20:11:01Z bruce $ */
00002 #ifndef NET__IPV4__H__
00003 #define NET__IPV4__H__
00004 
00005 #include <sysdeps.h>
00006 
00012 typedef struct {
00014   uint8 addr[4];
00015 } ipv4addr;
00017 typedef uint16 ipv4port;
00018 
00019 extern const ipv4addr IPV4ADDR_ANY;
00020 extern const ipv4addr IPV4ADDR_BROADCAST;
00021 extern const ipv4addr IPV4ADDR_LOOPBACK;
00022 
00023 extern int ipv4_parse(const char* s, ipv4addr* addr, const char** end) __DEPRECATED__;
00024 extern const char* ipv4_scan(const char* s, ipv4addr* addr);
00025 extern const char* ipv4_format(const ipv4addr* addr);
00026 extern unsigned fmt_ipv4addr(char* buffer, const ipv4addr* addr);
00027 
00030 #endif

Generated on Wed Mar 8 13:34:49 2006 for bglibs by  doxygen 1.4.4