Tizen Native API
5.5
|
Utility functions that set up and shut down the Ecore Connection library.
There's also ecore_con_lookup() that can be used to make simple asynchronous DNS lookups.
A simple example of how to use these functions:
Functions | |
int | ecore_con_init (void) |
Initializes the Ecore_Con library. | |
int | ecore_con_shutdown (void) |
Shuts down the Ecore_Con library. | |
Eina_Bool | ecore_con_lookup (const char *name, Ecore_Con_Dns_Cb done_cb, const void *data) |
Do an asynchronous DNS lookup. | |
Typedefs | |
typedef void(* | Ecore_Con_Dns_Cb )(const char *canonname, const char *ip, struct sockaddr *addr, int addrlen, void *data) |
A callback type for use with ecore_con_lookup.
int ecore_con_init | ( | void | ) |
Initializes the Ecore_Con library.
Eina_Bool ecore_con_lookup | ( | const char * | name, |
Ecore_Con_Dns_Cb | done_cb, | ||
const void * | data | ||
) |
Do an asynchronous DNS lookup.
This function performs a DNS lookup on the hostname specified by name, then calls done_cb with the result and the data given as parameter. The result will be given to the done_cb as follows:
canonname - the canonical name of the address, ip - the resolved ip address, addr - a pointer to the socket address, addrlen - the length of the socket address, in bytes, data - the data pointer given as parameter.
[in] | name | IP address or server name to translate. |
[in] | done_cb | Callback to notify when done. |
[in] | data | User data to be given to done_cb. |
true
if the request did not fail to be set up, false
otherwise. int ecore_con_shutdown | ( | void | ) |
Shuts down the Ecore_Con library.