apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

rfc2553emu.h File Reference
#include <netdb.h>
#include <sys/socket.h>
#include <sys/types.h>
Include dependency graph for rfc2553emu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  addrinfo_emu
 

Macros

#define addrinfo   addrinfo_emu
 
#define AI_PASSIVE   (1<<1)
 
#define EAI_NONAME   -1
 
#define EAI_AGAIN   -2
 
#define EAI_FAIL   -3
 
#define EAI_NODATA   -4
 
#define EAI_FAMILY   -5
 
#define EAI_SOCKTYPE   -6
 
#define EAI_SERVICE   -7
 
#define EAI_ADDRFAMILY   -8
 
#define EAI_SYSTEM   -10
 
#define EAI_MEMORY   -11
 
#define sockaddr_storage   sockaddr_in
 
#define NI_MAXHOST   1025
 
#define NI_MAXSERV   32
 
#define NI_NUMERICHOST   (1<<0)
 
#define NI_NUMERICSERV   (1<<1)
 
#define NI_NAMEREQD   (1<<3)
 
#define NI_DATAGRAM   (1<<4)
 
#define sockaddr_storage   sockaddr_in
 
#define AI_NUMERICHOST   0
 

Functions

int getaddrinfo (const char *nodename, const char *servname, const struct addrinfo_emu *hints, struct addrinfo_emu **res)
 
void freeaddrinfo (struct addrinfo_emu *ai)
 
int getnameinfo (const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags)
 

Macro Definition Documentation

◆ addrinfo

#define addrinfo   addrinfo_emu

Definition at line 52 of file rfc2553emu.h.

◆ AI_NUMERICHOST

#define AI_NUMERICHOST   0

Definition at line 109 of file rfc2553emu.h.

◆ AI_PASSIVE

#define AI_PASSIVE   (1<<1)

Definition at line 60 of file rfc2553emu.h.

◆ EAI_ADDRFAMILY

#define EAI_ADDRFAMILY   -8

Definition at line 71 of file rfc2553emu.h.

◆ EAI_AGAIN

#define EAI_AGAIN   -2

Definition at line 65 of file rfc2553emu.h.

◆ EAI_FAIL

#define EAI_FAIL   -3

Definition at line 66 of file rfc2553emu.h.

◆ EAI_FAMILY

#define EAI_FAMILY   -5

Definition at line 68 of file rfc2553emu.h.

◆ EAI_MEMORY

#define EAI_MEMORY   -11

Definition at line 73 of file rfc2553emu.h.

◆ EAI_NODATA

#define EAI_NODATA   -4

Definition at line 67 of file rfc2553emu.h.

◆ EAI_NONAME

#define EAI_NONAME   -1

Definition at line 64 of file rfc2553emu.h.

◆ EAI_SERVICE

#define EAI_SERVICE   -7

Definition at line 70 of file rfc2553emu.h.

◆ EAI_SOCKTYPE

#define EAI_SOCKTYPE   -6

Definition at line 69 of file rfc2553emu.h.

◆ EAI_SYSTEM

#define EAI_SYSTEM   -10

Definition at line 72 of file rfc2553emu.h.

◆ NI_DATAGRAM

#define NI_DATAGRAM   (1<<4)

Definition at line 101 of file rfc2553emu.h.

◆ NI_MAXHOST

#define NI_MAXHOST   1025

Definition at line 92 of file rfc2553emu.h.

◆ NI_MAXSERV

#define NI_MAXSERV   32

Definition at line 93 of file rfc2553emu.h.

◆ NI_NAMEREQD

#define NI_NAMEREQD   (1<<3)

Definition at line 100 of file rfc2553emu.h.

◆ NI_NUMERICHOST

#define NI_NUMERICHOST   (1<<0)

Definition at line 97 of file rfc2553emu.h.

◆ NI_NUMERICSERV

#define NI_NUMERICSERV   (1<<1)

Definition at line 98 of file rfc2553emu.h.

◆ sockaddr_storage [1/2]

#define sockaddr_storage   sockaddr_in

Definition at line 104 of file rfc2553emu.h.

◆ sockaddr_storage [2/2]

#define sockaddr_storage   sockaddr_in

Definition at line 104 of file rfc2553emu.h.

Function Documentation

◆ freeaddrinfo()

void freeaddrinfo ( struct addrinfo_emu ai)

◆ getaddrinfo()

int getaddrinfo ( const char *  nodename,
const char *  servname,
const struct addrinfo_emu hints,
struct addrinfo_emu **  res 
)

◆ getnameinfo()

int getnameinfo ( const struct sockaddr *  sa,
socklen_t  salen,
char *  host,
size_t  hostlen,
char *  serv,
size_t  servlen,
int  flags 
)