bglibs: ipv4.h Source File

- Main Page
- Modules
- Data Structures
- Files
- Directories
- Related Pages
- Examples

# ipv4.h

    00001 /* $Id: ipv4.h 720 2006-08-01 15:12:47Z 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) __attribute__((__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