Top |
Functions
struct addrinfo * | camel_getaddrinfo () |
void | camel_freeaddrinfo () |
gchar * | camel_host_idna_to_ascii () |
Types and Values
#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 |
Functions
camel_getaddrinfo ()
struct addrinfo * camel_getaddrinfo (const gchar *name
,const gchar *service
,const struct addrinfo *hints
,GCancellable *cancellable
,GError **error
);
Since: 2.22
camel_host_idna_to_ascii ()
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.
Returns
Newly allocated string with only ASCII letters describing the host
.
Free it with g_free()
when done with it.
Since: 3.16