\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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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}
\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 \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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}
\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 \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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__Eina__File__Group_gae8924623ca601364965e3d88fb7f40fa}{DBG}}, \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 \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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}
\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 \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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 \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{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()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, and \mbox{\hyperlink{group__Eina__File__Group_ga24e93be9c5baa3aeab7021b64e290672}{ERR}}.

