Ecore Connection Library Functions
Utility functions that set up and shut down the Ecore Connection library. More...
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. | |
Enumerations | |
enum | _Ecore_Con_Type { ECORE_CON_LOCAL_USER = 0, ECORE_CON_LOCAL_SYSTEM = 1, ECORE_CON_LOCAL_ABSTRACT = 2, ECORE_CON_REMOTE_TCP = 3, ECORE_CON_REMOTE_MCAST = 4, ECORE_CON_REMOTE_UDP = 5, ECORE_CON_REMOTE_BROADCAST = 6 , ECORE_CON_USE_SSL2 = (1 << 4), ECORE_CON_USE_SSL3 = (1 << 5), ECORE_CON_USE_TLS = (1 << 6), ECORE_CON_USE_MIXED = ECORE_CON_USE_SSL3 | ECORE_CON_USE_TLS, ECORE_CON_LOAD_CERT = (1 << 7) } |
Types for an ecore_con client/server object. More... | |
Functions | |
EAPI int | ecore_con_init (void) |
Initialises the Ecore_Con library. | |
EAPI int | ecore_con_shutdown (void) |
Shuts down the Ecore_Con library. | |
EAPI Eina_Bool | ecore_con_lookup (const char *name, Ecore_Con_Dns_Cb done_cb, const void *data) |
Do an asynchronous DNS lookup. |
Detailed Description
Utility functions that set up and shut down the Ecore Connection library.
Enumeration Type Documentation
enum _Ecore_Con_Type |
Types for an ecore_con client/server object.
A correct way to set this type is with an ECORE_CON_$TYPE, optionally OR'ed with an ECORE_CON_$USE if encryption is desired, and LOAD_CERT if the previously loaded certificate should be used.
- Enumerator:
Function Documentation
EAPI int ecore_con_init | ( | void | ) |
Initialises the Ecore_Con library.
- Returns:
- Number of times the library has been initialised without being shut down.
- Examples:
- ecore_con_client_example.c, and ecore_con_server_example.c.
References ECORE_CON_EVENT_CLIENT_ADD, ECORE_CON_EVENT_CLIENT_DATA, ECORE_CON_EVENT_CLIENT_DEL, ECORE_CON_EVENT_SERVER_ADD, ECORE_CON_EVENT_SERVER_DATA, ECORE_CON_EVENT_SERVER_DEL, ecore_event_type_new(), ecore_init(), and ecore_shutdown().
Referenced by ecore_ipc_init().
EAPI 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
- Parameters:
-
name IP address or server name to translate. done_cb Callback to notify when done. data User data to be given to done_cb.
- Returns:
- EINA_TRUE if the request did not fail to be set up, EINA_FALSE if it failed.
References ECORE_CON_REMOTE_TCP.
EAPI int ecore_con_shutdown | ( | void | ) |
Shuts down the Ecore_Con library.
- Returns:
- Number of times the library has been initialised without being shut down.
References ecore_shutdown().
Referenced by ecore_ipc_shutdown().