|
|
1.1 root 1: /* %M% %I% %E% */
2: /*
3: * Structures returned by network
4: * data base library. All addresses
5: * are supplied in host order, and
6: * returned in network order (suitable
7: * for use in system calls).
8: */
9: struct hostent {
10: char *h_name; /* official name of host */
11: char **h_aliases; /* alias list */
12: int h_addrtype; /* host address type */
13: int h_length; /* length of address */
14: char *h_addr; /* address */
15: };
16:
17: /*
18: * Assumption here is that a network number
19: * fits in 32 bits -- probably a poor one.
20: */
21: struct netent {
22: char *n_name; /* official name of net */
23: char **n_aliases; /* alias list */
24: int n_addrtype; /* net address type */
25: int n_net; /* network # */
26: };
27:
28: struct servent {
29: char *s_name; /* official service name */
30: char **s_aliases; /* alias list */
31: int s_port; /* port # */
32: char *s_proto; /* protocol to use */
33: };
34:
35: struct protoent {
36: char *p_name; /* official protocol name */
37: char **p_aliases; /* alias list */
38: int p_proto; /* protocol # */
39: };
40:
41: struct hostent *gethostbyname(), *gethostbyaddr(), *gethostent();
42: struct netent *getnetbyname(), *getnetbyaddr(), *getnetent();
43: struct servent *getservbyname(), *getservbyport(), *getservent();
44: struct protoent *getprotobyname(), *getprotobynumber(), *getprotoent();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.