Tizen Native API  3.0
Ecore Connection Library Functions

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.

Typedefs

typedef void(* Ecore_Con_Dns_Cb )(const char *canonname, const char *ip, struct sockaddr *addr, int addrlen, void *data)

Typedef Documentation

A callback type for use with ecore_con_lookup.


Enumeration Type Documentation

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:
ECORE_CON_LOCAL_USER 

Socket in ~/.ecore

ECORE_CON_LOCAL_SYSTEM 

Socket in /tmp

ECORE_CON_LOCAL_ABSTRACT 

Abstract socket

ECORE_CON_REMOTE_TCP 

Remote server using TCP

ECORE_CON_REMOTE_MCAST 

Remote multicast server

ECORE_CON_REMOTE_UDP 

Remote server using UDP

ECORE_CON_REMOTE_BROADCAST 

Remote broadcast using UDP

ECORE_CON_REMOTE_NODELAY 

Remote connection sending packets immediately

ECORE_CON_REMOTE_CORK 

Remote connection sending data in large chunks

Note:
Only available on Linux.
Since (EFL) :
1.2
ECORE_CON_USE_SSL2 

Use SSL2: UNSUPPORTED.

ECORE_CON_USE_SSL3 

Use SSL3: UNSUPPORTED.

ECORE_CON_USE_TLS 

Use TLS

ECORE_CON_USE_MIXED 

Use both TLS and SSL3

ECORE_CON_LOAD_CERT 

Attempt to use the loaded certificate

ECORE_CON_NO_PROXY 

Disable all types of proxy on the server

Note:
Only functional for clients.
Since (EFL) :
1.2

Function Documentation

int ecore_con_init ( void  )

Initializes the Ecore_Con library.

Returns:
Number of times the library has been initialised without being shut down.
Note:
This function already calls ecore_init() internally, so you don't need to call it explicitly.
Since :
3.0
Examples:
ecore_con_client_simple_example.c, ecore_con_lookup_example.c, ecore_con_server_simple_example.c, ecore_con_url_cookies_example.c, ecore_con_url_download_example.c, and ecore_con_url_headers_example.c.
int ecore_con_shutdown ( void  )

Shuts down the Ecore_Con library.

Returns:
Number of times the library has been initialised without being shut down.
Note:
This function already calls ecore_shutdown() internally, so you don't need to call it explicitly unless you called ecore_init() explicitly too.
Since :
3.0
Examples:
ecore_con_client_simple_example.c, ecore_con_lookup_example.c, ecore_con_server_simple_example.c, ecore_con_url_cookies_example.c, ecore_con_url_download_example.c, and ecore_con_url_headers_example.c.