5
#if (defined(WIN32) || defined(cygwin))
8
* database access functions for host, services, protocols, networks
12
* sets can open. ends must close.
14
void sethostent(int stay_open);
15
void setservent(int stay_open);
16
void setprotoent(int stay_open);
17
void setnetent(int stay_open);
18
void endhostent(void);
19
void endservent(void);
20
void endprotoent(void);
24
* get next entry from data base file, or from NIS if possible.
27
* returns 0 if there are no more entries to read.
29
struct hostent *gethostent(void);
30
struct servent *getservent(void);
31
struct protoent *getprotoent(void);
32
struct netent *getnetent(void);
34
struct netent *getnetbyaddr(long net, int type);
37
* Return the network number from an internet address
39
u_long inet_netof(struct in_addr in);
42
* Return the host number from an internet address
44
u_long inet_lnaof(struct in_addr in);
46
#endif /* WIN32 or cygwin */
48
#endif /*_WINSTUB_H_ */