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  

c8/ndb.c File Reference


Detailed Description

Network database examples [Sec. 8.8].

Definition in file ndb.c.

Go to the source code of this file.

Functions

void ifdb (void)
void display_hostent (struct hostent *h)
void hostdb (void)
void gethostbyname_ex (void)
void gethostbyaddr_ex (void)
void getnameinfo_ex (void)
void display_netent (struct netent *n)
void netdb (void)
void display_protoent (struct protoent *p)
void protodb (void)
void display_servent (struct servent *s)
void servdb (void)
void cvt (void)
int main (void)


Function Documentation

void cvt void   )  [static]
 

Definition at line 191 of file ndb.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, ec_null, inet_ntop(), and inet_pton().

Referenced by main().

void display_hostent struct hostent h  )  [static]
 

Definition at line 49 of file ndb.c.

References hostent::h_addr_list, hostent::h_addrtype, hostent::h_aliases, hostent::h_length, hostent::h_name, and inet_ntoa().

Referenced by gethostbyaddr_ex(), gethostbyname_ex(), and hostdb().

void display_netent struct netent n  )  [static]
 

Definition at line 132 of file ndb.c.

References netent::n_addrtype, netent::n_aliases, netent::n_name, and netent::n_net.

Referenced by netdb().

void display_protoent struct protoent p  )  [static]
 

Definition at line 152 of file ndb.c.

References protoent::p_aliases, protoent::p_name, and protoent::p_proto.

Referenced by protodb().

void display_servent struct servent s  )  [static]
 

Definition at line 171 of file ndb.c.

References servent::s_aliases, servent::s_name, servent::s_port, and servent::s_proto.

Referenced by servdb().

void gethostbyaddr_ex void   )  [static]
 

Definition at line 88 of file ndb.c.

References display_hostent(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, gethostbyaddr(), and inet_addr().

Referenced by main().

void gethostbyname_ex void   )  [static]
 

Definition at line 74 of file ndb.c.

References display_hostent(), and gethostbyname().

Referenced by main().

void getnameinfo_ex void   )  [static]
 

Definition at line 114 of file ndb.c.

References ec_ai, EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, getnameinfo(), htons(), inet_addr(), sockaddr_in::sin_addr, sockaddr_in::sin_family, and sockaddr_in::sin_port.

Referenced by main().

void hostdb void   )  [static]
 

Definition at line 64 of file ndb.c.

References display_hostent(), endhostent(), gethostent(), and sethostent().

Referenced by main().

void ifdb void   )  [static]
 

Definition at line 33 of file ndb.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_null, if_freenameindex(), if_nameindex::if_index, if_nameindex::if_name, and if_nameindex().

Referenced by main().

int main void   ) 
 

Definition at line 219 of file ndb.c.

References cvt(), exit(), gethostbyaddr_ex(), gethostbyname_ex(), gethostid(), getnameinfo_ex(), hostdb(), ifdb(), inet_ntoa(), netdb(), protodb(), and servdb().

void netdb void   )  [static]
 

Definition at line 142 of file ndb.c.

References display_netent(), endnetent(), getnetent(), and setnetent().

Referenced by main().

void protodb void   )  [static]
 

Definition at line 161 of file ndb.c.

References display_protoent(), endprotoent(), getprotoent(), and setprotoent().

Referenced by main().

void servdb void   )  [static]
 

Definition at line 181 of file ndb.c.

References display_servent(), endservent(), getservent(), and setservent().

Referenced by main().


Generated on Fri Apr 23 10:57:10 2004 for AUP2 Example Source by doxygen 1.3.1