ipv4.h
#ifndef NET__IPV4__H__
#define NET__IPV4__H__
#include "sysdeps.h"
typedef struct {
uint8 addr[4];
} ipv4addr;
typedef uint16 ipv4port;
extern const ipv4addr IPV4ADDR_ANY;
extern const ipv4addr IPV4ADDR_BROADCAST;
extern const ipv4addr IPV4ADDR_LOOPBACK;
extern int ipv4_parse(const char* s, ipv4addr* addr, const char** end) __DEPRECATED__;
extern const char* ipv4_scan(const char* s, ipv4addr* addr);
extern const char* ipv4_format(const ipv4addr* addr);
extern const char* ipv4_format_reverse(const ipv4addr* addr);
extern unsigned fmt_ipv4addr(char* buffer, const ipv4addr* addr);
extern unsigned fmt_ipv4addr_reverse(char* buffer, const ipv4addr* addr);
#endif
ipv4port
uint16 ipv4port
Definition ipv4.h:16
IPV4ADDR_BROADCAST
const ipv4addr IPV4ADDR_BROADCAST
Definition ipv4_addr.c:6
IPV4ADDR_ANY
const ipv4addr IPV4ADDR_ANY
Definition ipv4_addr.c:4
ipv4_format
const char * ipv4_format(const ipv4addr *addr)
Definition ipv4_format.c:18
fmt_ipv4addr_reverse
unsigned fmt_ipv4addr_reverse(char *buffer, const ipv4addr *addr)
Definition ipv4_format.c:65
fmt_ipv4addr
unsigned fmt_ipv4addr(char *buffer, const ipv4addr *addr)
Definition ipv4_format.c:46
ipv4_scan
const char * ipv4_scan(const char *s, ipv4addr *addr)
Definition ipv4_scan.c:25
IPV4ADDR_LOOPBACK
const ipv4addr IPV4ADDR_LOOPBACK
Definition ipv4_addr.c:8
ipv4_format_reverse
const char * ipv4_format_reverse(const ipv4addr *addr)
Definition ipv4_format.c:30
ipv4_parse
int ipv4_parse(const char *s, ipv4addr *addr, const char **end) __DEPRECATED__
Definition ipv4_scan.c:47
ipv4addr
Definition ipv4.h:11
ipv4addr::addr
uint8 addr[4]
Definition ipv4.h:13