KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
inet.h File Reference

Definitions for internet operations. More...

#include <sys/cdefs.h>
#include <netinet/in.h>
#include <inttypes.h>

Go to the source code of this file.

Functions

uint32_t htonl (uint32_t value)
 Convert a 32-bit value from host byte order to network byte order.
 
uint32_t ntohl (uint32_t value)
 Convert a 32-bit value from network byte order to host byte order.
 
uint16_t htons (uint16_t value)
 Convert a 16-bit value from host byte order to network byte order.
 
uint16_t ntohs (uint16_t value)
 Convert a 16-bit value from network byte order to host byte order.
 
in_addr_t inet_addr (const char *cp)
 Convert a string representation of an IPv4 address to an in_addr_t.
 
int inet_aton (const char *cp, struct in_addr *pin)
 Convert a string representation of an IPv4 address to a struct in_addr.
 
int inet_pton (int af, const char *src, void *dst)
 Convert a string representation of an IP address to its binary representation.
 
const char * inet_ntop (int af, const void *src, char *dst, socklen_t size)
 Convert a binary representation of an IP address to a string.
 
char * inet_ntoa (struct in_addr addr)
 Convert a binary representation of an IPv4 address to a string.
 

Detailed Description

Definitions for internet operations.

This file contains the standard definitions (as directed by the POSIX 2008 standard) for several internet-related functions.

Author
Lawrence Sebald