2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Ux::Netdb Class Reference
[C++ Wrapper for Standard UNIX Functions]

Inheritance diagram for Ux::Netdb:

Ux::Base List of all members.

Detailed Description

Definition at line 35 of file uxnetdb.hpp.

Public Member Functions

if_nameindex * if_nameindex (void)
void if_freenameindex (struct if_nameindex *ptr)
unsigned if_nametoindex (const char *ifname)
char * if_indextoname (unsigned ifindex, char *ifname)

Static Public Member Functions

hostent * gethostent (void)
void endhostent (void)
void sethostent (int stayopen)
netent * getnetbyaddr (uint32_t net, int type)
netent * getnetbyname (const char *name)
netent * getnetent (void)
void endnetent (void)
void setnetent (int stayopen)
protoent * getprotobyname (const char *name)
protoent * getprotobynumber (int proto)
protoent * getprotoent (void)
void endprotoent (void)
void setprotoent (int stayopen)
servent * getservbyname (const char *name, const char *proto)
servent * getservbyport (int port, const char *proto)
servent * getservent (void)
void endservent (void)
void setservent (int stayopen)
uint16_t htons (uint16_t hostnum)
uint32_t htonl (uint32_t hostnum)
uint16_t ntohs (uint16_t netnum)
uint32_t ntohl (uint32_t netnum)


Member Function Documentation

void Netdb::endhostent void   )  [static]
 

Definition at line 33 of file uxnetdb.cpp.

void Netdb::endnetent void   )  [static]
 

Definition at line 60 of file uxnetdb.cpp.

void Netdb::endprotoent void   )  [static]
 

Definition at line 85 of file uxnetdb.cpp.

void Netdb::endservent void   )  [static]
 

Definition at line 110 of file uxnetdb.cpp.

struct hostent * Netdb::gethostent void   )  [static]
 

Definition at line 28 of file uxnetdb.cpp.

References gethostent().

struct netent * Netdb::getnetbyaddr uint32_t  net,
int  type
[static]
 

Definition at line 45 of file uxnetdb.cpp.

References getnetbyaddr().

struct netent * Netdb::getnetbyname const char *  name  )  [static]
 

Definition at line 50 of file uxnetdb.cpp.

References getnetbyname().

struct netent * Netdb::getnetent void   )  [static]
 

Definition at line 55 of file uxnetdb.cpp.

References getnetent().

struct protoent * Netdb::getprotobyname const char *  name  )  [static]
 

Definition at line 70 of file uxnetdb.cpp.

References getprotobyname().

struct protoent * Netdb::getprotobynumber int  proto  )  [static]
 

Definition at line 75 of file uxnetdb.cpp.

References getprotobynumber().

struct protoent * Netdb::getprotoent void   )  [static]
 

Definition at line 80 of file uxnetdb.cpp.

References getprotoent().

struct servent * Netdb::getservbyname const char *  name,
const char *  proto
[static]
 

Definition at line 95 of file uxnetdb.cpp.

References getservbyname().

struct servent * Netdb::getservbyport int  port,
const char *  proto
[static]
 

Definition at line 100 of file uxnetdb.cpp.

References getservbyport().

struct servent * Netdb::getservent void   )  [static]
 

Definition at line 105 of file uxnetdb.cpp.

References getservent().

uint32_t Ux::Netdb::htonl uint32_t  hostnum  )  [inline, static]
 

Definition at line 59 of file uxnetdb.hpp.

References htonl().

uint16_t Ux::Netdb::htons uint16_t  hostnum  )  [inline, static]
 

Definition at line 57 of file uxnetdb.hpp.

References htons().

void Netdb::if_freenameindex struct if_nameindex *  ptr  ) 
 

Definition at line 125 of file uxnetdb.cpp.

char * Netdb::if_indextoname unsigned  ifindex,
char *  ifname
 

Definition at line 135 of file uxnetdb.cpp.

References errno.

struct if_nameindex * Netdb::if_nameindex void   ) 
 

Definition at line 116 of file uxnetdb.cpp.

References errno.

unsigned Netdb::if_nametoindex const char *  ifname  ) 
 

Definition at line 130 of file uxnetdb.cpp.

uint32_t Ux::Netdb::ntohl uint32_t  netnum  )  [inline, static]
 

Definition at line 63 of file uxnetdb.hpp.

References ntohl().

uint16_t Ux::Netdb::ntohs uint16_t  netnum  )  [inline, static]
 

Definition at line 61 of file uxnetdb.hpp.

References ntohs().

void Netdb::sethostent int  stayopen  )  [static]
 

Definition at line 23 of file uxnetdb.cpp.

void Netdb::setnetent int  stayopen  )  [static]
 

Definition at line 40 of file uxnetdb.cpp.

void Netdb::setprotoent int  stayopen  )  [static]
 

Definition at line 65 of file uxnetdb.cpp.

void Netdb::setservent int  stayopen  )  [static]
 

Definition at line 90 of file uxnetdb.cpp.


The documentation for this class was generated from the following files:
Generated on Fri Apr 23 10:57:17 2004 for AUP2 Example Source by doxygen 1.3.1