inet.h File Reference

API published in:
API deprecated in:


#include <sys/cdefs.h>
#include <sys/_types.h>
#include <machine/endian.h>

Go to the source code of this file.


Data Structures

struct   in_addr

Defines

#define  INET_ADDRSTRLEN   16
#define  INET6_ADDRSTRLEN   46
#define  _BYTEORDER_PROTOTYPED
#define  htonl(x)   __htonl(x)
#define  htons(x)   __htons(x)
#define  ntohl(x)   __ntohl(x)
#define  ntohs(x)   __ntohs(x)

Typedefs

typedef __uint16_t  uint16_t
typedef __uint32_t  uint32_t
typedef uint32_t  in_addr_t
typedef uint16_t  in_port_t
typedef __socklen_t  socklen_t

Functions

IMPORT_C uint32_t  htonl (uint32_t)
IMPORT_C uint16_t  htons (uint16_t)
IMPORT_C in_addr_t  inet_addr (const char *)
IMPORT_C char *  inet_ntoa (struct in_addr)
IMPORT_C const char *  inet_ntop (int, const void *__restrict, char *__restrict, socklen_t)
IMPORT_C int  inet_pton (int, const char *__restrict, void *__restrict)

Define Documentation

#define _BYTEORDER_PROTOTYPED
 
#define htonl  )     __htonl(x)
 
#define htons  )     __htons(x)
 
#define INET6_ADDRSTRLEN   46
 
#define INET_ADDRSTRLEN   16
 
#define ntohl  )     __ntohl(x)
 
#define ntohs  )     __ntohs(x)
 

Typedef Documentation

typedef uint32_t in_addr_t
 
typedef uint16_t in_port_t
 
typedef __socklen_t socklen_t
 
typedef __uint16_t uint16_t
 
typedef __uint32_t uint32_t
 

Function Documentation

IMPORT_C uint32_t htonl uint32_t   ) 
 
IMPORT_C uint16_t htons uint16_t   ) 
 
IMPORT_C in_addr_t inet_addr const char *   ) 
 
IMPORT_C char* inet_ntoa struct  in_addr  ) 
 
IMPORT_C const char* inet_ntop int  ,
const void *  __restrict,
char *  __restrict,
socklen_t 
 
IMPORT_C int inet_pton int  ,
const char *  __restrict,
void *  __restrict
 

Copyright © Nokia Corporation 2001-2008
Back to top