Watt-32 tcp/ip  2.2 dev-rel.10
Data Structures | Functions | Variables
netdb.h File Reference

Go to the source code of this file.

Data Structures

struct  hostent
 
struct  netent
 
struct  servent
 
struct  protoent
 
struct  addrinfo
 

Functions

__BEGIN_DECLS W32_FUNC void
W32_CALL 
endhostent (void)
 
W32_FUNC void W32_CALL endhostent6 (void)
 
W32_FUNC void W32_CALL endnetent (void)
 
W32_FUNC void W32_CALL endprotoent (void)
 
W32_FUNC void W32_CALL endservent (void)
 
W32_FUNC struct hostent *W32_CALL gethostbyaddr (const char *, int, int)
 
W32_FUNC struct hostent *W32_CALL gethostbyaddr6 (const void *)
 
W32_FUNC struct hostent *W32_CALL gethostbyname (const char *name)
 
W32_FUNC struct hostent *W32_CALL gethostbyname2 (const char *name, int af)
 
W32_FUNC struct hostent *W32_CALL gethostbyname6 (const char *name)
 
W32_FUNC struct hostent *W32_CALL gethostent (void)
 Return the next (non-commented) line from the host-file. More...
 
W32_FUNC struct hostent *W32_CALL gethostent6 (void)
 
W32_FUNC struct hostent *W32_CALL getipnodebyaddr (const void *, size_t, int, int *)
 
W32_FUNC struct hostent *W32_CALL getipnodebyname (const char *, int, int, int *)
 
W32_FUNC struct netent *W32_CALL getnetbyaddr (long, int)
 
W32_FUNC struct netent *W32_CALL getnetbyname (const char *)
 
W32_FUNC struct netent *W32_CALL getnetent (void)
 
W32_FUNC struct protoent *W32_CALL getprotobyname (const char *)
 
W32_FUNC struct protoent *W32_CALL getprotobynumber (int)
 
W32_FUNC struct protoent *W32_CALL getprotoent (void)
 
W32_FUNC struct servent *W32_CALL getservbyname (const char *, const char *)
 
W32_FUNC struct servent *W32_CALL getservbyport (int, const char *)
 
W32_FUNC struct servent *W32_CALL getservent (void)
 
W32_FUNC void W32_CALL herror (const char *)
 
W32_FUNC const char *W32_CALL hstrerror (int)
 
W32_FUNC void W32_CALL sethostent (int stayopen)
 
W32_FUNC void W32_CALL sethostent6 (int stayopen)
 
W32_FUNC void W32_CALL setnetent (int)
 
W32_FUNC void W32_CALL setprotoent (int)
 
W32_FUNC void W32_CALL setservent (int)
 
W32_FUNC int W32_CALL getnameinfo (const struct sockaddr *sa, int salen, char *host, int hostlen, char *serv, int servlen, int flags)
 
W32_FUNC int W32_CALL getaddrinfo (const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res)
 
W32_FUNC void W32_CALL freeaddrinfo (struct addrinfo *ai)
 
W32_FUNC void W32_CALL freehostent (struct hostent *)
 
W32_FUNC char *W32_CALL gai_strerror (int ecode)
 
W32_FUNC int W32_CALL if_nametoindex (const char *)
 
W32_FUNC char *W32_CALL if_indextoname (int, char *)
 
W32_FUNC int *W32_CALL __h_errno_location (void)
 
W32_FUNC struct hostent *W32_CALL gethostbyaddr_r (const char *addr, int len, int type, struct hostent *result, char *buffer, int buflen, int *h_errnop)
 
W32_FUNC struct hostent *W32_CALL gethostbyname_r (const char *name, struct hostent *result, char *buffer, int buflen, int *h_errnop)
 
W32_FUNC struct hostent *W32_CALL gethostent_r (struct hostent *result, char *buffer, int buflen, int *h_errnop)
 
W32_FUNC struct netent *W32_CALL getnetbyaddr_r (long net, int type, struct netent *result, char *buffer, int buflen)
 
W32_FUNC struct netent *W32_CALL getnetbyname_r (const char *name, struct netent *result, char *buffer, int buflen)
 
W32_FUNC struct netent *W32_CALL getnetent_r (struct netent *result, char *buffer, int buflen)
 
W32_FUNC struct protoent *W32_CALL getprotobyname_r (const char *name, struct protoent *result, char *buffer, int buflen)
 
W32_FUNC struct protoent *W32_CALL getprotobynumber_r (int proto, struct protoent *result, char *buffer, int buflen)
 
W32_FUNC struct protoent *W32_CALL getprotoent_r (struct protoent *result, char *buffer, int buflen)
 
W32_FUNC struct servent *W32_CALL getservbyname_r (const char *name, const char *proto, struct servent *result, char *buffer, int buflen)
 
W32_FUNC struct servent *W32_CALL getservbyport_r (int port, const char *proto, struct servent *result, char *buffer, int buflen)
 
W32_FUNC struct servent *W32_CALL getservent_r (struct servent *result, char *buffer, int buflen)
 

Variables

W32_DATA int h_errno
 

Detailed Description

BSD netdb functions.

Definition in file netdb.h.

Function Documentation

W32_FUNC struct hostent* W32_CALL gethostent ( void  )

Return the next (non-commented) line from the host-file.

Format is: ip-address host-name [alias..] {
| # ..}

Definition at line 218 of file gethost.c.

References _strlcpy(), isaddr(), netdb_init(), and strltrim().