\hypertarget{group__Ecore__IPC__Server__Group}{}\doxysection{IPC Server Functions}
\label{group__Ecore__IPC__Server__Group}\index{IPC Server Functions@{IPC Server Functions}}


Functions the deal with IPC server objects.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EAPI \mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Server__Group_ga4314631af279786f7a3d3d043f96f8d4}{ecore\+\_\+ipc\+\_\+server\+\_\+add}} (\mbox{\hyperlink{group__Ecore__IPC__Group_ga6458bde9508dc6eea168fe72b98d8e09}{Ecore\+\_\+\+Ipc\+\_\+\+Type}} type, const char $\ast$name, int port, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Creates an IPC server that listens for connections. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Server__Group_gae7048746096a322f343f5499c8892c88}{ecore\+\_\+ipc\+\_\+server\+\_\+connect}} (\mbox{\hyperlink{group__Ecore__IPC__Group_ga6458bde9508dc6eea168fe72b98d8e09}{Ecore\+\_\+\+Ipc\+\_\+\+Type}} type, char $\ast$name, int port, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Creates an IPC server object to represent the IPC server listening on the given port. \end{DoxyCompactList}\item 
EAPI void $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Server__Group_gadcf98d375b54c532adbda10b5baafe77}{ecore\+\_\+ipc\+\_\+server\+\_\+del}} (\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Closes the connection and frees the given IPC server. \end{DoxyCompactList}\item 
EAPI void $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Server__Group_ga092839e05716aab67c2b0e9922cb92ae}{ecore\+\_\+ipc\+\_\+server\+\_\+data\+\_\+get}} (\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Retrieves the data associated with the given IPC server. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__IPC__Server__Group_gada787dfd83c0d9db2ee16bd2d849cd7d}{ecore\+\_\+ipc\+\_\+server\+\_\+connected\+\_\+get}} (\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Retrieves whether the given IPC server is currently connected. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Ecore__IPC__Server__Group_gaf9b8132aa7fe2b2826b08efc2d46cf39}{ecore\+\_\+ipc\+\_\+server\+\_\+clients\+\_\+get}} (\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Retrieves the list of clients for this server. \end{DoxyCompactList}\item 
EAPI int \mbox{\hyperlink{group__Ecore__IPC__Server__Group_ga1fb98acb3bcab778e52bf35f932a5afa}{ecore\+\_\+ipc\+\_\+server\+\_\+send}} (\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$svr, 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 server. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Ecore__IPC__Server__Group_gae74ad64c4bfebcaa111fe1e878e8f900}{ecore\+\_\+ipc\+\_\+server\+\_\+client\+\_\+limit\+\_\+set}} (\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$svr, int client\+\_\+limit, char reject\+\_\+excess\+\_\+clients)
\begin{DoxyCompactList}\small\item\em Sets a limit on the number of clients that can be handled concurrently by the given server, and a policy on what to do if excess clients try to connect. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Ecore__IPC__Server__Group_gada899216cf825f778392458dcb386a7b}{ecore\+\_\+ipc\+\_\+server\+\_\+data\+\_\+size\+\_\+max\+\_\+set}} (\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$svr, 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__Server__Group_ga553df6756b406063cd375ca00001f1b5}{ecore\+\_\+ipc\+\_\+server\+\_\+data\+\_\+size\+\_\+max\+\_\+get}} (\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$svr)
\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__Server__Group_gac4adc4fa3f92b7a4e1ee59a54506321b}{ecore\+\_\+ipc\+\_\+server\+\_\+ip\+\_\+get}} (\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Gets the IP address of a server that has been connected to. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__Ecore__IPC__Server__Group_ga70cdc0c1aea94e13dc7b740c11313c9a}{ecore\+\_\+ipc\+\_\+server\+\_\+flush}} (\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Flushes all pending data to the given server. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Functions the deal with IPC server objects. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Ecore__IPC__Server__Group_ga4314631af279786f7a3d3d043f96f8d4}\label{group__Ecore__IPC__Server__Group_ga4314631af279786f7a3d3d043f96f8d4}} 
\index{IPC Server Functions@{IPC Server Functions}!ecore\_ipc\_server\_add@{ecore\_ipc\_server\_add}}
\index{ecore\_ipc\_server\_add@{ecore\_ipc\_server\_add}!IPC Server Functions@{IPC Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_server\_add()}{ecore\_ipc\_server\_add()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$ ecore\+\_\+ipc\+\_\+server\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_ga6458bde9508dc6eea168fe72b98d8e09}{Ecore\+\_\+\+Ipc\+\_\+\+Type}}}]{type,  }\item[{const char $\ast$}]{name,  }\item[{int}]{port,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Creates an IPC server that listens for connections. 

For more details about the {\ttfamily type}, {\ttfamily name} and {\ttfamily port} parameters, see the \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga8993f75b5a4948b6b3975575d807fb21}{ecore\+\_\+con\+\_\+server\+\_\+add}} documentation.


\begin{DoxyParams}{Parameters}
{\em type} & The connection type. \\
\hline
{\em name} & Name to associate with the socket used for connection. \\
\hline
{\em port} & Number to identify with socket used for connection. \\
\hline
{\em data} & Data to associate with the IPC server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
New IPC server. If there is an error, {\ttfamily NULL} is returned. 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga06c138783b4658b9e7304b5e3cbb0bb3}{ecore\+\_\+con\+\_\+local\+\_\+path\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Error__Group_gac420af42486bcbb879c4be67eacc6c2a}{eina\+\_\+error\+\_\+msg\+\_\+get()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga4e028a0c5bd5743068c1c3f2302dc0e8}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+GOTO}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Ecore__IPC__Server__Group_gae7048746096a322f343f5499c8892c88}\label{group__Ecore__IPC__Server__Group_gae7048746096a322f343f5499c8892c88}} 
\index{IPC Server Functions@{IPC Server Functions}!ecore\_ipc\_server\_connect@{ecore\_ipc\_server\_connect}}
\index{ecore\_ipc\_server\_connect@{ecore\_ipc\_server\_connect}!IPC Server Functions@{IPC Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_server\_connect()}{ecore\_ipc\_server\_connect()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$ ecore\+\_\+ipc\+\_\+server\+\_\+connect (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_ga6458bde9508dc6eea168fe72b98d8e09}{Ecore\+\_\+\+Ipc\+\_\+\+Type}}}]{type,  }\item[{char $\ast$}]{name,  }\item[{int}]{port,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Creates an IPC server object to represent the IPC server listening on the given port. 

For more details about the {\ttfamily type}, {\ttfamily name} and {\ttfamily port} parameters, see the \mbox{\hyperlink{group__Ecore__Con__Server__Group_gab1bc5a7692c3c36af00e1ac1db257e98}{ecore\+\_\+con\+\_\+server\+\_\+connect}} documentation.


\begin{DoxyParams}{Parameters}
{\em type} & The IPC connection type. \\
\hline
{\em name} & Name used to determine which socket to use for the IPC connection. \\
\hline
{\em port} & Number used to identify the socket to use for the IPC connection. \\
\hline
{\em data} & Data to associate with the server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new IPC server. {\ttfamily NULL} is returned on error. 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga06c138783b4658b9e7304b5e3cbb0bb3}{ecore\+\_\+con\+\_\+local\+\_\+path\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Error__Group_gac420af42486bcbb879c4be67eacc6c2a}{eina\+\_\+error\+\_\+msg\+\_\+get()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga4e028a0c5bd5743068c1c3f2302dc0e8}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+GOTO}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Ecore__IPC__Server__Group_gadcf98d375b54c532adbda10b5baafe77}\label{group__Ecore__IPC__Server__Group_gadcf98d375b54c532adbda10b5baafe77}} 
\index{IPC Server Functions@{IPC Server Functions}!ecore\_ipc\_server\_del@{ecore\_ipc\_server\_del}}
\index{ecore\_ipc\_server\_del@{ecore\_ipc\_server\_del}!IPC Server Functions@{IPC Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_server\_del()}{ecore\_ipc\_server\_del()}}
{\footnotesize\ttfamily EAPI void $\ast$ ecore\+\_\+ipc\+\_\+server\+\_\+del (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Closes the connection and frees the given IPC server. 


\begin{DoxyParams}{Parameters}
{\em svr} & The given IPC server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The data associated with the server when it was created. 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Ecore__IPC__Client__Group_ga7427239388edc03407feb26989a14bb4}{ecore\+\_\+ipc\+\_\+client\+\_\+del()}}, \mbox{\hyperlink{group__Eina__List__Group_ga82a1bfa543e21853f9ea3ff88dd1250b}{eina\+\_\+list\+\_\+free()}}, \mbox{\hyperlink{group__Eina__List__Group_gae27a2c686a0a11693f9b06957c9bba83}{EINA\+\_\+\+LIST\+\_\+\+FREE}}, and \mbox{\hyperlink{group__Eina__List__Group_ga6e81c26272c54177d087b29c965af4d8}{eina\+\_\+list\+\_\+remove()}}.



Referenced by \mbox{\hyperlink{group__Ecore__IPC__Group_ga48e9b9ace36dd75ade7ffa90fa9a093c}{ecore\+\_\+ipc\+\_\+shutdown()}}, and \mbox{\hyperlink{Efreet_8h_aa5274d54ff59163b4935f20e576388f1}{efreet\+\_\+cache\+\_\+disable()}}.

\mbox{\Hypertarget{group__Ecore__IPC__Server__Group_ga092839e05716aab67c2b0e9922cb92ae}\label{group__Ecore__IPC__Server__Group_ga092839e05716aab67c2b0e9922cb92ae}} 
\index{IPC Server Functions@{IPC Server Functions}!ecore\_ipc\_server\_data\_get@{ecore\_ipc\_server\_data\_get}}
\index{ecore\_ipc\_server\_data\_get@{ecore\_ipc\_server\_data\_get}!IPC Server Functions@{IPC Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_server\_data\_get()}{ecore\_ipc\_server\_data\_get()}}
{\footnotesize\ttfamily EAPI void $\ast$ ecore\+\_\+ipc\+\_\+server\+\_\+data\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Retrieves the data associated with the given IPC server. 


\begin{DoxyParams}{Parameters}
{\em svr} & The given IPC server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The associated data. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Ecore__IPC__Server__Group_gada787dfd83c0d9db2ee16bd2d849cd7d}\label{group__Ecore__IPC__Server__Group_gada787dfd83c0d9db2ee16bd2d849cd7d}} 
\index{IPC Server Functions@{IPC Server Functions}!ecore\_ipc\_server\_connected\_get@{ecore\_ipc\_server\_connected\_get}}
\index{ecore\_ipc\_server\_connected\_get@{ecore\_ipc\_server\_connected\_get}!IPC Server Functions@{IPC Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_server\_connected\_get()}{ecore\_ipc\_server\_connected\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+ipc\+\_\+server\+\_\+connected\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Retrieves whether the given IPC server is currently connected. 


\begin{DoxyParams}{Parameters}
{\em svr} & The given IPC server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if the server is connected, {\ttfamily EINA\+\_\+\+FALSE} otherwise. 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Ecore__IPC__Server__Group_gaf9b8132aa7fe2b2826b08efc2d46cf39}\label{group__Ecore__IPC__Server__Group_gaf9b8132aa7fe2b2826b08efc2d46cf39}} 
\index{IPC Server Functions@{IPC Server Functions}!ecore\_ipc\_server\_clients\_get@{ecore\_ipc\_server\_clients\_get}}
\index{ecore\_ipc\_server\_clients\_get@{ecore\_ipc\_server\_clients\_get}!IPC Server Functions@{IPC Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_server\_clients\_get()}{ecore\_ipc\_server\_clients\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ ecore\+\_\+ipc\+\_\+server\+\_\+clients\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Retrieves the list of clients for this server. 


\begin{DoxyParams}{Parameters}
{\em svr} & The given IPC server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An Eina\+\_\+\+List with the clients. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Ecore__IPC__Server__Group_ga1fb98acb3bcab778e52bf35f932a5afa}\label{group__Ecore__IPC__Server__Group_ga1fb98acb3bcab778e52bf35f932a5afa}} 
\index{IPC Server Functions@{IPC Server Functions}!ecore\_ipc\_server\_send@{ecore\_ipc\_server\_send}}
\index{ecore\_ipc\_server\_send@{ecore\_ipc\_server\_send}!IPC Server Functions@{IPC Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_server\_send()}{ecore\_ipc\_server\_send()}}
{\footnotesize\ttfamily EAPI int ecore\+\_\+ipc\+\_\+server\+\_\+send (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$}]{svr,  }\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 server. 

The content of the parameters, excluding the {\ttfamily svr} parameter, is up to the client.


\begin{DoxyParams}{Parameters}
{\em svr} & The given IPC server. \\
\hline
{\em major} & Major opcode of the message. \\
\hline
{\em minor} & Minor opcode of the message. \\
\hline
{\em ref} & Message reference number. \\
\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}
Number of bytes sent. {\ttfamily 0} is returned if there is an error. 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Error__Group_gac420af42486bcbb879c4be67eacc6c2a}{eina\+\_\+error\+\_\+msg\+\_\+get()}}, \mbox{\hyperlink{struct__Eina__Slice_a814bda14dd4ee838595cdc596c37b56c}{\+\_\+\+Eina\+\_\+\+Slice\+::len}}, and \mbox{\hyperlink{struct__Eina__Slice_a181517cb6ab94d2b536f412dc74b39c1}{\+\_\+\+Eina\+\_\+\+Slice\+::mem}}.

\mbox{\Hypertarget{group__Ecore__IPC__Server__Group_gae74ad64c4bfebcaa111fe1e878e8f900}\label{group__Ecore__IPC__Server__Group_gae74ad64c4bfebcaa111fe1e878e8f900}} 
\index{IPC Server Functions@{IPC Server Functions}!ecore\_ipc\_server\_client\_limit\_set@{ecore\_ipc\_server\_client\_limit\_set}}
\index{ecore\_ipc\_server\_client\_limit\_set@{ecore\_ipc\_server\_client\_limit\_set}!IPC Server Functions@{IPC Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_server\_client\_limit\_set()}{ecore\_ipc\_server\_client\_limit\_set()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+ipc\+\_\+server\+\_\+client\+\_\+limit\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$}]{svr,  }\item[{int}]{client\+\_\+limit,  }\item[{char}]{reject\+\_\+excess\+\_\+clients }\end{DoxyParamCaption})}



Sets a limit on the number of clients that can be handled concurrently by the given server, and a policy on what to do if excess clients try to connect. 

Beware that if you set this once ecore is already running, you may already have pending CLIENT\+\_\+\+ADD events in your event queue. Those clients have already connected and will not be affected by this call. Only clients subsequently trying to connect will be affected. 
\begin{DoxyParams}{Parameters}
{\em svr} & The given server. \\
\hline
{\em client\+\_\+limit} & The maximum number of clients to handle concurrently. -\/1 means unlimited (default). 0 effectively disables the server. \\
\hline
{\em reject\+\_\+excess\+\_\+clients} & Set to 1 to automatically disconnect excess clients as soon as they connect if you are already handling client\+\_\+limit clients. Set to 0 (default) to just hold off on the \char`\"{}accept()\char`\"{} system call until the number of active clients drops. This causes the kernel to queue up to 4096 connections (or your kernel\textquotesingle{}s limit, whichever is lower). \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Ecore__IPC__Server__Group_gada899216cf825f778392458dcb386a7b}\label{group__Ecore__IPC__Server__Group_gada899216cf825f778392458dcb386a7b}} 
\index{IPC Server Functions@{IPC Server Functions}!ecore\_ipc\_server\_data\_size\_max\_set@{ecore\_ipc\_server\_data\_size\_max\_set}}
\index{ecore\_ipc\_server\_data\_size\_max\_set@{ecore\_ipc\_server\_data\_size\_max\_set}!IPC Server Functions@{IPC Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_server\_data\_size\_max\_set()}{ecore\_ipc\_server\_data\_size\_max\_set()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+ipc\+\_\+server\+\_\+data\+\_\+size\+\_\+max\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$}]{svr,  }\item[{int}]{size }\end{DoxyParamCaption})}



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


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



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


\begin{DoxyParams}{Parameters}
{\em svr} & The given server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The maximum data payload in bytes. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Ecore__IPC__Server__Group_gac4adc4fa3f92b7a4e1ee59a54506321b}\label{group__Ecore__IPC__Server__Group_gac4adc4fa3f92b7a4e1ee59a54506321b}} 
\index{IPC Server Functions@{IPC Server Functions}!ecore\_ipc\_server\_ip\_get@{ecore\_ipc\_server\_ip\_get}}
\index{ecore\_ipc\_server\_ip\_get@{ecore\_ipc\_server\_ip\_get}!IPC Server Functions@{IPC Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_server\_ip\_get()}{ecore\_ipc\_server\_ip\_get()}}
{\footnotesize\ttfamily EAPI const char $\ast$ ecore\+\_\+ipc\+\_\+server\+\_\+ip\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



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


\begin{DoxyParams}{Parameters}
{\em svr} & The given server. \\
\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 svr} object. If no IP is known NULL is returned. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Ecore__IPC__Server__Group_ga70cdc0c1aea94e13dc7b740c11313c9a}\label{group__Ecore__IPC__Server__Group_ga70cdc0c1aea94e13dc7b740c11313c9a}} 
\index{IPC Server Functions@{IPC Server Functions}!ecore\_ipc\_server\_flush@{ecore\_ipc\_server\_flush}}
\index{ecore\_ipc\_server\_flush@{ecore\_ipc\_server\_flush}!IPC Server Functions@{IPC Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_ipc\_server\_flush()}{ecore\_ipc\_server\_flush()}}
{\footnotesize\ttfamily EAPI void ecore\+\_\+ipc\+\_\+server\+\_\+flush (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__IPC__Group_ga521ebc02e6c6c94364c64fee18c462fb}{Ecore\+\_\+\+Ipc\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Flushes all pending data to the given server. 

Will return when done.


\begin{DoxyParams}{Parameters}
{\em svr} & The given server. \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Ecore__Main__Loop__Group_ga0b23ea5d7f31f45e2c2f37d4393ddb2e}{ecore\+\_\+main\+\_\+loop\+\_\+iterate()}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

