inet.h File Reference

Definitions for internet operations. More...

Detailed Description

Definitions for internet operations.

See also
The Open Group Base Specifications Issue 7, <arpa/inet.h>
Author
Martine Lenders mlend.nosp@m.ers@.nosp@m.inf.f.nosp@m.u-be.nosp@m.rlin..nosp@m.de

Definition in file inet.h.

#include "net/af.h"
#include "sys/bytes.h"
#include "netinet/in.h"
+ Include dependency graph for inet.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INADDRSZ   (4)
 Size in byte of an IPv4 address.
 
#define IN6ADDRSZ   (16)
 Size in byte of an IPv6 address.
 

Functions

const char * inet_ntop (int af, const void *restrict src, char *restrict dst, socklen_t size)
 Converts an IP address to its string representation. More...
 
int inet_pton (int af, const char *src, void *dst)
 Converts an IP address string representation to a byte-represented IP address. More...