\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 
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 
EAPI \mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Client__Group_gaddc4f57b3718d1c50ca176572def8946}{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 
EAPI void $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Client__Group_ga7427239388edc03407feb26989a14bb4}{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 
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 
EAPI void $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Client__Group_ga44db544e78d28fb6370748d5ae67fec1}{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 
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 
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 
EAPI const char $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Client__Group_gaff89201b6e7a694bc7c9e75ab4aab0a9}{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 
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 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 \mbox{\hyperlink{group__Eina__Error__Group_gac420af42486bcbb879c4be67eacc6c2a}{eina\+\_\+error\+\_\+msg\+\_\+get()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1dbe0d7e3c6b10f4bd49a2a132d73269}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{struct__Eina__Slice_a814bda14dd4ee838595cdc596c37b56c}{\+\_\+\+Eina\+\_\+\+Slice\+::len}}, and \mbox{\hyperlink{struct__Eina__Slice_a181517cb6ab94d2b536f412dc74b39c1}{\+\_\+\+Eina\+\_\+\+Slice\+::mem}}.

\mbox{\Hypertarget{group__Ecore__IPC__Client__Group_gaddc4f57b3718d1c50ca176572def8946}\label{group__Ecore__IPC__Client__Group_gaddc4f57b3718d1c50ca176572def8946}} 
\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 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_ga7427239388edc03407feb26989a14bb4}\label{group__Ecore__IPC__Client__Group_ga7427239388edc03407feb26989a14bb4}} 
\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 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 \mbox{\hyperlink{group__Eina__List__Group_ga6e81c26272c54177d087b29c965af4d8}{eina\+\_\+list\+\_\+remove()}}.



Referenced by \mbox{\hyperlink{group__Ecore__IPC__Server__Group_gadcf98d375b54c532adbda10b5baafe77}{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 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_ga44db544e78d28fb6370748d5ae67fec1}\label{group__Ecore__IPC__Client__Group_ga44db544e78d28fb6370748d5ae67fec1}} 
\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 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 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 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_gaff89201b6e7a694bc7c9e75ab4aab0a9}\label{group__Ecore__IPC__Client__Group_gaff89201b6e7a694bc7c9e75ab4aab0a9}} 
\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 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 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 \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

