zkNetdb.h is a portable wrapper for the POSIX header <netdb.h>. It is part of the libzk library because <netdb.h> doesn't exist in Standard C.
Don't Call This | Instead, Call This | Reason |
---|---|---|
gethostbyaddr | zkGethostbyaddr | Not in Standard C. |
gethostbyname | zkGethostbyname | Not in Standard C. |
getprotobyname | zkGetprotobyname | Not in Standard C. |
getprotobynumber | zkGetprotobynumber | Not in Standard C. |
getservbyname | zkGetservbyname | Not in Standard C. |
getservbyport | zkGetservbyport | Not in Standard C. |
Don't Use This | Instead, Use This | Reason |
---|---|---|
h_errno | zkHErrno() | Not in Standard C, plus it isn't reentrant. |