Tizen Native API  3.0

The Ecore Connection Eet library (Ecore_Con_Eet) adds Eet data serialization features to Ecore Connection objects. Its main aim is to provide a way to send Eet data streams to another program through sockets using Ecore_Con objects.

Functions

Ecore_Con_Eet * ecore_con_eet_server_new (Ecore_Con_Server *server)
 Creates an Ecore_Con_Eet server.
Ecore_Con_Eet * ecore_con_eet_client_new (Ecore_Con_Server *server)
 Creates an Ecore_Con_Eet client.
void ecore_con_eet_server_free (Ecore_Con_Eet *ece)
 Frees an existing Ecore_Con_Eet object.
void ecore_con_eet_register (Ecore_Con_Eet *ece, const char *name, Eet_Data_Descriptor *edd)
 Registers an Eet data descriptor on a Ecore_Con_Eet object.
void ecore_con_eet_data_callback_add (Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Data_Cb func, const void *data)
 Registers a data callback on a Ecore_Con_Eet object. When the Ecore_Con_Eet object is deleted, this automatically gets removed.
void ecore_con_eet_data_callback_del (Ecore_Con_Eet *ece, const char *name)
 Removes a data callback on a Ecore_Con_Eet object.
void ecore_con_eet_raw_data_callback_add (Ecore_Con_Eet *ece, const char *name, Ecore_Con_Eet_Raw_Data_Cb func, const void *data)
 Registers a raw data callback on a Ecore_Con_Eet object. When the Ecore_Con_Eet object is deleted, this automatically gets removed.
void ecore_con_eet_raw_data_callback_del (Ecore_Con_Eet *ece, const char *name)
 Removes a raw data callback on a Ecore_Con_Eet object.
void ecore_con_eet_client_connect_callback_add (Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data)
 Registers a client connect callback on a Ecore_Con_Eet object.
void ecore_con_eet_client_connect_callback_del (Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data)
 Removes a client connect callback on a Ecore_Con_Eet object.
void ecore_con_eet_client_disconnect_callback_add (Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data)
 Registers a client disconnect callback on a Ecore_Con_Eet object.
void ecore_con_eet_client_disconnect_callback_del (Ecore_Con_Eet *ece, Ecore_Con_Eet_Client_Cb func, const void *data)
 Removes a client disconnect callback on a Ecore_Con_Eet object.
void ecore_con_eet_server_connect_callback_add (Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data)
 Registers a server connect callback on a Ecore_Con_Eet object.
void ecore_con_eet_server_connect_callback_del (Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data)
 Removes a server connect callback on a Ecore_Con_Eet object.
void ecore_con_eet_server_disconnect_callback_add (Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data)
 Registers a server disconnect callback on a Ecore_Con_Eet object.
void ecore_con_eet_server_disconnect_callback_del (Ecore_Con_Eet *ece, Ecore_Con_Eet_Server_Cb func, const void *data)
 Removes a server disconnect callback on a Ecore_Con_Eet object.
void ecore_con_eet_data_set (Ecore_Con_Eet *ece, const void *data)
 Attaches data to an Ecore_Con_Eet object.
const void * ecore_con_eet_data_get (Ecore_Con_Eet *ece)
 Gets the data attached to an Ecore_Con_Eet object.
Ecore_Con_Eet * ecore_con_eet_reply (Ecore_Con_Reply *reply)
 Gets the Ecore_Con_Eet object corresponding to the Ecore_Con_Reply object.
void ecore_con_eet_send (Ecore_Con_Reply *reply, const char *protocol_name, void *value)
 Sends some data using a protocol type.
void ecore_con_eet_raw_send (Ecore_Con_Reply *reply, const char *protocol_name, const char *section, void *value, unsigned int length)
 Sends some raw data using a protocol type.

Typedefs

typedef void(* Ecore_Con_Eet_Data_Cb )(void *data, Ecore_Con_Reply *reply, const char *protocol_name, void *value)
 Called when an Ecore_Con_Eet object receives data.
typedef void(* Ecore_Con_Eet_Raw_Data_Cb )(void *data, Ecore_Con_Reply *reply, const char *protocol_name, const char *section, void *value, size_t length)
 Called when an Ecore_Con_Eet object receives raw data.
typedef Eina_Bool(* Ecore_Con_Eet_Client_Cb )(void *data, Ecore_Con_Reply *reply, Ecore_Con_Client *conn)
 Called when a client connects to the server.
typedef Eina_Bool(* Ecore_Con_Eet_Server_Cb )(void *data, Ecore_Con_Reply *reply, Ecore_Con_Server *conn)
 Called when the server has accepted the connection of the client.

Function Documentation

void ecore_con_eet_client_connect_callback_add ( Ecore_Con_Eet *  ece,
Ecore_Con_Eet_Client_Cb  func,
const void *  data 
)

Registers a client connect callback on a Ecore_Con_Eet object.

This callback can be registered on the server program to know when a client connects. When the Ecore_Con_Eet object is deleted, this automatically gets removed.

Parameters:
eceAn Ecore_Con_Eet object.
funcThe function to call as a callback.
dataThe data to pass to the callback.
Since :
3.0
void ecore_con_eet_client_connect_callback_del ( Ecore_Con_Eet *  ece,
Ecore_Con_Eet_Client_Cb  func,
const void *  data 
)

Removes a client connect callback on a Ecore_Con_Eet object.

Parameters:
eceAn Ecore_Con_Eet object.
funcThe callback to remove.
dataThe data passed to this function at the callback registration.
Since :
3.0
void ecore_con_eet_client_disconnect_callback_add ( Ecore_Con_Eet *  ece,
Ecore_Con_Eet_Client_Cb  func,
const void *  data 
)

Registers a client disconnect callback on a Ecore_Con_Eet object.

This callback can be registered on the server program to know when a client disconnects. When the Ecore_Con_Eet object is deleted, this automatically gets removed.

Parameters:
eceAn Ecore_Con_Eet object.
funcThe function to call as a callback.
dataThe data to pass to the callback.
Since :
3.0
void ecore_con_eet_client_disconnect_callback_del ( Ecore_Con_Eet *  ece,
Ecore_Con_Eet_Client_Cb  func,
const void *  data 
)

Removes a client disconnect callback on a Ecore_Con_Eet object.

Parameters:
eceAn Ecore_Con_Eet object.
funcThe callback to remove.
dataThe data passed to this function at the callback registration.
Since :
3.0
Ecore_Con_Eet* ecore_con_eet_client_new ( Ecore_Con_Server *  server)

Creates an Ecore_Con_Eet client.

Parameters:
serverAn existing Ecore_Con_Server that have been previously returned by a call to ecore_con_server_connect in the client program.

This object gets deleted automatically when the parent Ecore_Con_Server is deleted.

Returns:
A new Ecore_Con_Eet client.
Since :
3.0
void ecore_con_eet_data_callback_add ( Ecore_Con_Eet *  ece,
const char *  name,
Ecore_Con_Eet_Data_Cb  func,
const void *  data 
)

Registers a data callback on a Ecore_Con_Eet object. When the Ecore_Con_Eet object is deleted, this automatically gets removed.

Parameters:
eceAn Ecore_Con_Eet object.
nameThe name of the Eet stream to connect.
funcThe function to call as a callback.
dataThe data to pass to the callback.
Since :
3.0
void ecore_con_eet_data_callback_del ( Ecore_Con_Eet *  ece,
const char *  name 
)

Removes a data callback on a Ecore_Con_Eet object.

Parameters:
eceAn Ecore_Con_Eet object.
nameThe name of the Eet stream to remove callback on.
Since :
3.0
const void* ecore_con_eet_data_get ( Ecore_Con_Eet *  ece)

Gets the data attached to an Ecore_Con_Eet object.

Parameters:
eceAn Ecore_Con_Eet object.
Returns:
The data attached to the Ecore_Con_Eet object.
Since :
3.0
void ecore_con_eet_data_set ( Ecore_Con_Eet *  ece,
const void *  data 
)

Attaches data to an Ecore_Con_Eet object.

Parameters:
eceAn Ecore_Con_Eet object.
dataThe data to attach to the Ecore_Con_Eet object.
Since :
3.0
void ecore_con_eet_raw_data_callback_add ( Ecore_Con_Eet *  ece,
const char *  name,
Ecore_Con_Eet_Raw_Data_Cb  func,
const void *  data 
)

Registers a raw data callback on a Ecore_Con_Eet object. When the Ecore_Con_Eet object is deleted, this automatically gets removed.

Parameters:
eceAn Ecore_Con_Eet object.
nameThe name of the raw Eet stream to connect.
funcThe function to call as a callback.
dataThe data to pass to the callback.
Since :
3.0
void ecore_con_eet_raw_data_callback_del ( Ecore_Con_Eet *  ece,
const char *  name 
)

Removes a raw data callback on a Ecore_Con_Eet object.

Parameters:
eceAn Ecore_Con_Eet object.
nameThe name of the raw Eet stream to remove callback on.
Since :
3.0
void ecore_con_eet_raw_send ( Ecore_Con_Reply *  reply,
const char *  protocol_name,
const char *  section,
void *  value,
unsigned int  length 
)

Sends some raw data using a protocol type.

Parameters:
replyAn Ecore_Con_Reply object.
protocol_nameThe protocol type to use.
sectionThe section to add to the protocol.
valueThe data to send.
lengthThe data length.
Since :
3.0
void ecore_con_eet_register ( Ecore_Con_Eet *  ece,
const char *  name,
Eet_Data_Descriptor edd 
)

Registers an Eet data descriptor on a Ecore_Con_Eet object.

Parameters:
eceAn Ecore_Con_Eet object.
nameThe name of the Eet stream to connect.
eddA Eet data descriptor that describes the data organization in the Eet stream.
Since :
3.0
Ecore_Con_Eet* ecore_con_eet_reply ( Ecore_Con_Reply *  reply)

Gets the Ecore_Con_Eet object corresponding to the Ecore_Con_Reply object.

Parameters:
replyAn Ecore_Con_Reply object.
Returns:
The corresponding Ecore_Con_Eet object.
Since :
3.0
void ecore_con_eet_send ( Ecore_Con_Reply *  reply,
const char *  protocol_name,
void *  value 
)

Sends some data using a protocol type.

Parameters:
replyAn Ecore_Con_Reply object.
protocol_nameThe protocol type to use.
valueThe data to send.
Since :
3.0
void ecore_con_eet_server_connect_callback_add ( Ecore_Con_Eet *  ece,
Ecore_Con_Eet_Server_Cb  func,
const void *  data 
)

Registers a server connect callback on a Ecore_Con_Eet object.

This callback can be registered on the client program to be called. when it has been connected to the server. When the Ecore_Con_Eet object is deleted, this automatically gets removed.

Parameters:
eceAn Ecore_Con_Eet object.
funcThe function to call as a callback.
dataThe data to pass to the callback.
Since :
3.0
void ecore_con_eet_server_connect_callback_del ( Ecore_Con_Eet *  ece,
Ecore_Con_Eet_Server_Cb  func,
const void *  data 
)

Removes a server connect callback on a Ecore_Con_Eet object.

Parameters:
eceAn Ecore_Con_Eet object.
funcThe callback to remove.
dataThe data passed to this function at the callback registration.
Since :
3.0
void ecore_con_eet_server_disconnect_callback_add ( Ecore_Con_Eet *  ece,
Ecore_Con_Eet_Server_Cb  func,
const void *  data 
)

Registers a server disconnect callback on a Ecore_Con_Eet object.

This callback can be registered on the client program to be called when it has been disconnected from the server. When the Ecore_Con_Eet object is deleted, this automatically gets removed.

Parameters:
eceAn Ecore_Con_Eet object.
funcThe function to call as a callback.
dataThe data to pass to the callback.
Since :
3.0
void ecore_con_eet_server_disconnect_callback_del ( Ecore_Con_Eet *  ece,
Ecore_Con_Eet_Server_Cb  func,
const void *  data 
)

Removes a server disconnect callback on a Ecore_Con_Eet object.

Parameters:
eceAn Ecore_Con_Eet object.
funcThe callback to remove.
dataThe data passed to this function at the callback registration.
Since :
3.0
void ecore_con_eet_server_free ( Ecore_Con_Eet *  ece)

Frees an existing Ecore_Con_Eet object.

Parameters:
serverAn existing Ecore_Con_Eet object that have been previously allocated by a ecore_con_eet_server_new or ecore_con_eet_client_new.
Since :
3.0
Ecore_Con_Eet* ecore_con_eet_server_new ( Ecore_Con_Server *  server)

Creates an Ecore_Con_Eet server.

Parameters:
serverAn existing Ecore_Con_Server that have been previously created by the server program with ecore_con_server_add.

This object gets deleted automatically when the parent Ecore_Con_Server is deleted.

Returns:
A new Ecore_Con_Eet server.
Since :
3.0