posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
inet.h File Reference

Internet address conversion functions (<arpa/inet.h>) More...

#include <stddef.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <zephyr/net/socket.h>
Include dependency graph for inet.h:

Go to the source code of this file.

Typedefs

typedef uint32_t in_addr_t
 Unsigned 32-bit IPv4 address (alias for in_addr_t).
 

Functions

in_addr_t inet_addr (const char *cp)
 Convert an IPv4 address from dotted-decimal text to binary.
 
char * inet_ntoa (struct in_addr in)
 Convert an IPv4 address from binary to dotted-decimal text.
 
char * inet_ntop (sa_family_t family, const void *src, char *dst, size_t size)
 Convert an IPv4 or IPv6 address from binary to text form.
 
int inet_pton (sa_family_t family, const char *src, void *dst)
 Convert an IPv4 or IPv6 address from text form to binary.
 

Detailed Description

Internet address conversion functions (<arpa/inet.h>)

See also
POSIX.1-2017 <arpa/inet.h>

Definition in file inet.h.