\hypertarget{group__Ecore__IPC__Client__Group}{}\doxysection{IPC Client Functions}
\label{group__Ecore__IPC__Client__Group}\index{IPC Client Functions@{IPC Client Functions}}


Functions that deal with IPC client objects.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} int \mbox{\hyperlink{group__Ecore__IPC__Client__Group_ga982c4fa7ecccfb5e89bb6d368a74fd2a}{ecore\+\_\+ipc\+\_\+client\+\_\+send}} (\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$cl, int major, int minor, int ref, int ref\+\_\+to, int response, const void $\ast$data, int size)
\begin{DoxyCompactList}\small\item\em Sends a message to the given IPC client. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Client__Group_ga6fef6153dc1ed497d78265103518feed}{ecore\+\_\+ipc\+\_\+client\+\_\+server\+\_\+get}} (\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$cl)
\begin{DoxyCompactList}\small\item\em Retrieves the IPC server that the given IPC client is connected to. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Client__Group_ga33d563f3d055c9dbec3d3200cce36913}{ecore\+\_\+ipc\+\_\+client\+\_\+del}} (\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$cl)
\begin{DoxyCompactList}\small\item\em Closes the connection and frees memory allocated to the given IPC client. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void \mbox{\hyperlink{group__Ecore__IPC__Client__Group_ga7cdfcf0051c9d1bcc7e72aac33a0acd7}{ecore\+\_\+ipc\+\_\+client\+\_\+data\+\_\+set}} (\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$cl, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Sets the IPC data associated with the given IPC client to {\ttfamily data}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Client__Group_gab3285d8275d0662676c55f612dbaa49f}{ecore\+\_\+ipc\+\_\+client\+\_\+data\+\_\+get}} (\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$cl)
\begin{DoxyCompactList}\small\item\em Retrieves the data that has been associated with the given IPC client. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void \mbox{\hyperlink{group__Ecore__IPC__Client__Group_ga7be3fd240390eb78344973a0e0b7a848}{ecore\+\_\+ipc\+\_\+client\+\_\+data\+\_\+size\+\_\+max\+\_\+set}} (\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$cl, int size)
\begin{DoxyCompactList}\small\item\em Sets the max data payload size for an Ipc message in bytes. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} int \mbox{\hyperlink{group__Ecore__IPC__Client__Group_gadee9ddd697032fa36798cbd857225b7c}{ecore\+\_\+ipc\+\_\+client\+\_\+data\+\_\+size\+\_\+max\+\_\+get}} (\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$cl)
\begin{DoxyCompactList}\small\item\em Gets the max data payload size for an Ipc message in bytes. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} const char $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Client__Group_ga658902a6d8bc6e67517bed600b609dc4}{ecore\+\_\+ipc\+\_\+client\+\_\+ip\+\_\+get}} (\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$cl)
\begin{DoxyCompactList}\small\item\em Gets the IP address of a client that has been connected to. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void \mbox{\hyperlink{group__Ecore__IPC__Client__Group_ga4302e25c2db00f3dc7a08b72329b952d}{ecore\+\_\+ipc\+\_\+client\+\_\+flush}} (\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$cl)
\begin{DoxyCompactList}\small\item\em Flushes all pending data to the given client. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Functions that deal with IPC client objects. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Ecore__IPC__Client__Group_ga982c4fa7ecccfb5e89bb6d368a74fd2a}\label{group__Ecore__IPC__Client__Group_ga982c4fa7ecccfb5e89bb6d368a74fd2a}} 
\index{IPC Client Functions@{IPC Client Functions}!ecore\_ipc\_client\_send@{ecore\_ipc\_client\_send}}
\index{ecore\_ipc\_client\_send@{ecore\_ipc\_client\_send}!IPC Client Functions@{IPC Client Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_client\_send()}{ecore\_ipc\_client\_send()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} int ecore\+\_\+ipc\+\_\+client\+\_\+send (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$}]{cl,  }\item[{int}]{major,  }\item[{int}]{minor,  }\item[{int}]{ref,  }\item[{int}]{ref\+\_\+to,  }\item[{int}]{response,  }\item[{const void $\ast$}]{data,  }\item[{int}]{size }\end{DoxyParamCaption})}



Sends a message to the given IPC client. 


\begin{DoxyParams}{Parameters}
{\em cl} & The given IPC client. \\
\hline
{\em major} & Major opcode of the message. \\
\hline
{\em minor} & Minor opcode of the message. \\
\hline
{\em ref} & Reference number of the message. \\
\hline
{\em ref\+\_\+to} & Reference number of the message this message refers to. \\
\hline
{\em response} & Requires response. \\
\hline
{\em data} & The data to send as part of the message. \\
\hline
{\em size} & Length of the data, in bytes, to send. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The number of bytes sent. {\ttfamily 0} will be returned if there is an error. 
\end{DoxyReturn}


References EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL, and ERR.

\mbox{\Hypertarget{group__Ecore__IPC__Client__Group_ga6fef6153dc1ed497d78265103518feed}\label{group__Ecore__IPC__Client__Group_ga6fef6153dc1ed497d78265103518feed}} 
\index{IPC Client Functions@{IPC Client Functions}!ecore\_ipc\_client\_server\_get@{ecore\_ipc\_client\_server\_get}}
\index{ecore\_ipc\_client\_server\_get@{ecore\_ipc\_client\_server\_get}!IPC Client Functions@{IPC Client Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_client\_server\_get()}{ecore\_ipc\_client\_server\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}}$\ast$ ecore\+\_\+ipc\+\_\+client\+\_\+server\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$}]{cl }\end{DoxyParamCaption})}



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


\begin{DoxyParams}{Parameters}
{\em cl} & The given IPC client. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The IPC server the IPC client is connected to. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Ecore__IPC__Client__Group_ga33d563f3d055c9dbec3d3200cce36913}\label{group__Ecore__IPC__Client__Group_ga33d563f3d055c9dbec3d3200cce36913}} 
\index{IPC Client Functions@{IPC Client Functions}!ecore\_ipc\_client\_del@{ecore\_ipc\_client\_del}}
\index{ecore\_ipc\_client\_del@{ecore\_ipc\_client\_del}!IPC Client Functions@{IPC Client Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_client\_del()}{ecore\_ipc\_client\_del()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void$\ast$ ecore\+\_\+ipc\+\_\+client\+\_\+del (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$}]{cl }\end{DoxyParamCaption})}



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


\begin{DoxyParams}{Parameters}
{\em cl} & The given client. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Data associated with the client. 
\end{DoxyReturn}


References eina\+\_\+list\+\_\+remove().



Referenced by ecore\+\_\+ipc\+\_\+server\+\_\+del().

\mbox{\Hypertarget{group__Ecore__IPC__Client__Group_ga7cdfcf0051c9d1bcc7e72aac33a0acd7}\label{group__Ecore__IPC__Client__Group_ga7cdfcf0051c9d1bcc7e72aac33a0acd7}} 
\index{IPC Client Functions@{IPC Client Functions}!ecore\_ipc\_client\_data\_set@{ecore\_ipc\_client\_data\_set}}
\index{ecore\_ipc\_client\_data\_set@{ecore\_ipc\_client\_data\_set}!IPC Client Functions@{IPC Client Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_client\_data\_set()}{ecore\_ipc\_client\_data\_set()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void ecore\+\_\+ipc\+\_\+client\+\_\+data\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$}]{cl,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Sets the IPC data associated with the given IPC client to {\ttfamily data}. 


\begin{DoxyParams}{Parameters}
{\em cl} & The given IPC client. \\
\hline
{\em data} & The data to associate with the IPC client. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Ecore__IPC__Client__Group_gab3285d8275d0662676c55f612dbaa49f}\label{group__Ecore__IPC__Client__Group_gab3285d8275d0662676c55f612dbaa49f}} 
\index{IPC Client Functions@{IPC Client Functions}!ecore\_ipc\_client\_data\_get@{ecore\_ipc\_client\_data\_get}}
\index{ecore\_ipc\_client\_data\_get@{ecore\_ipc\_client\_data\_get}!IPC Client Functions@{IPC Client Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_client\_data\_get()}{ecore\_ipc\_client\_data\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void$\ast$ ecore\+\_\+ipc\+\_\+client\+\_\+data\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$}]{cl }\end{DoxyParamCaption})}



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


\begin{DoxyParams}{Parameters}
{\em cl} & The given client. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The data associated with the IPC client. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Ecore__IPC__Client__Group_ga7be3fd240390eb78344973a0e0b7a848}\label{group__Ecore__IPC__Client__Group_ga7be3fd240390eb78344973a0e0b7a848}} 
\index{IPC Client Functions@{IPC Client Functions}!ecore\_ipc\_client\_data\_size\_max\_set@{ecore\_ipc\_client\_data\_size\_max\_set}}
\index{ecore\_ipc\_client\_data\_size\_max\_set@{ecore\_ipc\_client\_data\_size\_max\_set}!IPC Client Functions@{IPC Client Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_client\_data\_size\_max\_set()}{ecore\_ipc\_client\_data\_size\_max\_set()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void ecore\+\_\+ipc\+\_\+client\+\_\+data\+\_\+size\+\_\+max\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$}]{cl,  }\item[{int}]{size }\end{DoxyParamCaption})}



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


\begin{DoxyParams}{Parameters}
{\em cl} & The given client. \\
\hline
{\em size} & The maximum data payload size in bytes. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Ecore__IPC__Client__Group_gadee9ddd697032fa36798cbd857225b7c}\label{group__Ecore__IPC__Client__Group_gadee9ddd697032fa36798cbd857225b7c}} 
\index{IPC Client Functions@{IPC Client Functions}!ecore\_ipc\_client\_data\_size\_max\_get@{ecore\_ipc\_client\_data\_size\_max\_get}}
\index{ecore\_ipc\_client\_data\_size\_max\_get@{ecore\_ipc\_client\_data\_size\_max\_get}!IPC Client Functions@{IPC Client Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_client\_data\_size\_max\_get()}{ecore\_ipc\_client\_data\_size\_max\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} int ecore\+\_\+ipc\+\_\+client\+\_\+data\+\_\+size\+\_\+max\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$}]{cl }\end{DoxyParamCaption})}



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


\begin{DoxyParams}{Parameters}
{\em cl} & The given client. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The maximum data payload size in bytes on success, {\ttfamily -\/1} on failure. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Ecore__IPC__Client__Group_ga658902a6d8bc6e67517bed600b609dc4}\label{group__Ecore__IPC__Client__Group_ga658902a6d8bc6e67517bed600b609dc4}} 
\index{IPC Client Functions@{IPC Client Functions}!ecore\_ipc\_client\_ip\_get@{ecore\_ipc\_client\_ip\_get}}
\index{ecore\_ipc\_client\_ip\_get@{ecore\_ipc\_client\_ip\_get}!IPC Client Functions@{IPC Client Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_client\_ip\_get()}{ecore\_ipc\_client\_ip\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} const char$\ast$ ecore\+\_\+ipc\+\_\+client\+\_\+ip\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$}]{cl }\end{DoxyParamCaption})}



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


\begin{DoxyParams}{Parameters}
{\em cl} & The given client. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to an internal string that contains the IP address of the connected server in the form \char`\"{}\+XXX.\+YYY.\+ZZZ.\+AAA\char`\"{} IP notation. This string should not be modified or trusted to stay valid after deletion for the {\ttfamily cl} object. If no IP is known {\ttfamily NULL} is returned. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Ecore__IPC__Client__Group_ga4302e25c2db00f3dc7a08b72329b952d}\label{group__Ecore__IPC__Client__Group_ga4302e25c2db00f3dc7a08b72329b952d}} 
\index{IPC Client Functions@{IPC Client Functions}!ecore\_ipc\_client\_flush@{ecore\_ipc\_client\_flush}}
\index{ecore\_ipc\_client\_flush@{ecore\_ipc\_client\_flush}!IPC Client Functions@{IPC Client Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_client\_flush()}{ecore\_ipc\_client\_flush()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} void ecore\+\_\+ipc\+\_\+client\+\_\+flush (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_gae1166d54c71fd0595df0a4f59779b47f}{Ecore\+\_\+\+Ipc\+\_\+\+Client}} $\ast$}]{cl }\end{DoxyParamCaption})}



Flushes all pending data to the given client. 

Will return when done.


\begin{DoxyParams}{Parameters}
{\em cl} & The given client. \\
\hline
\end{DoxyParams}


References EINA\+\_\+\+TRUE.

