Tizen Native API  5.5

Functions that deal with IPC client objects.

Functions

int ecore_ipc_client_send (Ecore_Ipc_Client *cl, int major, int minor, int ref, int ref_to, int response, const void *data, int size)
 Sends a message to the given IPC client.
Ecore_Ipc_Serverecore_ipc_client_server_get (Ecore_Ipc_Client *cl)
 Retrieves the IPC server that the given IPC client is connected to.
void * ecore_ipc_client_del (Ecore_Ipc_Client *cl)
 Closes the connection and frees memory allocated to the given IPC client.
void ecore_ipc_client_data_set (Ecore_Ipc_Client *cl, const void *data)
 Sets the IPC data associated with the given IPC client to data.
void * ecore_ipc_client_data_get (Ecore_Ipc_Client *cl)
 Retrieves the data that has been associated with the given IPC client.
void ecore_ipc_client_data_size_max_set (Ecore_Ipc_Client *cl, int size)
 Sets the max data payload size for an Ipc message in bytes.
int ecore_ipc_client_data_size_max_get (Ecore_Ipc_Client *cl)
 Gets the max data payload size for an Ipc message in bytes.
const char * ecore_ipc_client_ip_get (Ecore_Ipc_Client *cl)
 Gets the IP address of a client that has been connected to.
void ecore_ipc_client_flush (Ecore_Ipc_Client *cl)
 Flushes all pending data to the given client. Will return when done.

Function Documentation

Retrieves the data that has been associated with the given IPC client.

Parameters:
clThe given client.
Returns:
The data associated with the IPC client.
Since :
3.0
void ecore_ipc_client_data_set ( Ecore_Ipc_Client cl,
const void *  data 
)

Sets the IPC data associated with the given IPC client to data.

Parameters:
clThe given IPC client.
dataThe data to associate with the IPC client.
Since :
3.0

Gets the max data payload size for an Ipc message in bytes.

Parameters:
clThe given client.
Returns:
The maximum data payload size in bytes on success, -1 on failure.
Since :
3.0

Sets the max data payload size for an Ipc message in bytes.

Parameters:
clThe given client.
sizeThe maximum data payload size in bytes.
Since :
3.0

Closes the connection and frees memory allocated to the given IPC client.

Parameters:
clThe given client.
Returns:
Data associated with the client.
Since :
3.0

Flushes all pending data to the given client. Will return when done.

Parameters:
clThe given client.
Since :
3.0

Gets the IP address of a client that has been connected to.

Parameters:
clThe given client.
Returns:
A pointer to an internal string that contains the IP address of the connected server in the form "XXX.YYY.ZZZ.AAA" IP notation. This string should not be modified or trusted to stay valid after deletion for the cl object. If no IP is known NULL is returned.
Since :
3.0
int ecore_ipc_client_send ( Ecore_Ipc_Client cl,
int  major,
int  minor,
int  ref,
int  ref_to,
int  response,
const void *  data,
int  size 
)

Sends a message to the given IPC client.

Parameters:
clThe given IPC client.
majorMajor opcode of the message.
minorMinor opcode of the message.
refReference number of the message.
ref_toReference number of the message this message refers to.
responseRequires response.
dataThe data to send as part of the message.
sizeLength of the data, in bytes, to send.
Returns:
The number of bytes sent. 0 will be returned if there is an error.
Since :
3.0f(2.3.1)

Retrieves the IPC server that the given IPC client is connected to.

Parameters:
clThe given IPC client.
Returns:
The IPC server the IPC client is connected to.
Since :
3.0