| Top |
| struct addrinfo * | camel_getaddrinfo () |
| void | camel_freeaddrinfo () |
| gchar * | camel_host_idna_to_ascii () |
| #define | socklen_t |
| struct | addrinfo |
| #define | AI_CANONNAME |
| #define | AI_NUMERICHOST |
| #define | EAI_BADFLAGS |
| #define | EAI_NONAME |
| #define | EAI_AGAIN |
| #define | EAI_FAIL |
| #define | EAI_NODATA |
| #define | EAI_FAMILY |
| #define | EAI_SOCKTYPE |
| #define | EAI_SERVICE |
| #define | EAI_ADDRFAMILY |
| #define | EAI_MEMORY |
| #define | EAI_SYSTEM |
| #define | EAI_OVERFLOW |
| #define | NI_NUMERICHOST |
| #define | NI_NUMERICSERV |
| #define | NI_NOFQDN |
| #define | NI_NAMEREQD |
| #define | NI_DGRAM |
| struct | sockaddr |
struct addrinfo * camel_getaddrinfo (const gchar *name,const gchar *service,const struct addrinfo *hints,GCancellable *cancellable,GError **error);
Resolves a host name
and returns an information about its address.
name |
an address name to resolve |
|
service |
a service name to use |
|
hints |
an addrinfo hints, or |
[nullable] |
cancellable |
optional GCancellable object, or |
|
error |
return location for a GError, or |
a newly allocated addrinfo. Free it
with camel_freeaddrinfo() when done with it.
[transfer full][nullable]
Since: 2.22
void
camel_freeaddrinfo (struct addrinfo *host);
Frees a structure returned with camel_getaddrinfo(). It does
nothing when the host
is NULL.
Since: 2.22
gchar *
camel_host_idna_to_ascii (const gchar *host);
Converts IDN (Internationalized Domain Name) into ASCII representation.
If there's a failure or the host
has only ASCII letters, then a copy
of host
is returned.
Newly allocated string with only ASCII letters describing the host
.
Free it with g_free() when done with it.
Since: 3.16