![]() |
![]() |
![]() |
Camel Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#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 addrinfo * camel_getaddrinfo (const gchar *name
,const gchar *service
,const struct addrinfo *hints
,GCancellable *cancellable
,GError **error
); void camel_freeaddrinfo (struct addrinfo *host
); gchar * camel_host_idna_to_ascii (const gchar *host
);
struct addrinfo * camel_getaddrinfo (const gchar *name
,const gchar *service
,const struct addrinfo *hints
,GCancellable *cancellable
,GError **error
);
Returns : |
. [transfer none] |
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.
|
Host name, with or without non-ascii letters in utf8 |
Returns : |
Newly allocated string with only ASCII letters describing the host .
Free it with g_free() when done with it. |
Since 3.16