![]() | ![]() | ![]() | GMime Reference Manual | ![]() |
---|
gmime-host-utils —
int g_gethostbyname_r (const char *name, struct hostent *host, char *buf, size_t buflen, GError **err); int g_gethostbyaddr_r (const char *addr, int addrlen, int af, struct hostent *host, char *buf, size_t buflen, GError **err);
int g_gethostbyname_r (const char *name, struct hostent *host, char *buf, size_t buflen, GError **err);
A reentrant implementation of gethostbyname()
name : | the host to resolve |
host : | a buffer pointing to a struct hostent to use for storage |
buf : | a buffer to use for hostname storage |
buflen : | the size of buf |
err : | a GError |
Returns : | 0 on success, ERANGE if buflen is too small, "something else" otherwise -1 is returned and err is set appropriately. |
int g_gethostbyaddr_r (const char *addr, int addrlen, int af, struct hostent *host, char *buf, size_t buflen, GError **err);
A reentrant implementation of gethostbyaddr()
addr : | the addr to resolve |
addrlen : | address length |
af : | Address Family |
host : | a buffer pointing to a struct hostent to use for storage |
buf : | a buffer to use for hostname storage |
buflen : | the size of buf |
err : | a GError |
Returns : | 0 on success, ERANGE if buflen is too small, "something else" otherwise -1 is returned and err is set appropriately. |
<< gmime-utils | Part IV. GMime Classes >> |