\hypertarget{group__Ecore__Con__Server__Group}{}\doxysection{Ecore Connection Server Functions}
\label{group__Ecore__Con__Server__Group}\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}}


This group of functions is applied to an \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} object.  


\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}\label{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}} 
typedef struct \+\_\+\+Ecore\+\_\+\+Con\+\_\+\+Server {\bfseries Ecore\+\_\+\+Con\+\_\+\+Server}
\begin{DoxyCompactList}\small\item\em Used to provide legacy API/\+ABI compatibility with non-\/\+Eo applications. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
ECORE\+\_\+\+CON\+\_\+\+API char $\ast$ \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga06c138783b4658b9e7304b5e3cbb0bb3}{ecore\+\_\+con\+\_\+local\+\_\+path\+\_\+new}} (\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} is\+\_\+system, const char $\ast$name, int port)
\begin{DoxyCompactList}\small\item\em Creates a local path to connect the socket. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$ \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga8993f75b5a4948b6b3975575d807fb21}{ecore\+\_\+con\+\_\+server\+\_\+add}} (Ecore\+\_\+\+Con\+\_\+\+Type type, const char $\ast$name, int port, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Creates a server to listen for connections. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$ \mbox{\hyperlink{group__Ecore__Con__Server__Group_gab1bc5a7692c3c36af00e1ac1db257e98}{ecore\+\_\+con\+\_\+server\+\_\+connect}} (Ecore\+\_\+\+Con\+\_\+\+Type type, const char $\ast$name, int port, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Creates a connection to the specified server and return an associated object. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API void $\ast$ \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga2c73087dc4a05e80446a64e7420f87a3}{ecore\+\_\+con\+\_\+server\+\_\+del}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Closes the connection and free the given server. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API const char $\ast$ \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga8794c4cebaa94f553ed7fd067edad090}{ecore\+\_\+con\+\_\+server\+\_\+name\+\_\+get}} (const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Retrieves the name of server. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API void $\ast$ \mbox{\hyperlink{group__Ecore__Con__Server__Group_gaa2d84f142e670a7db42070b48bad9c0a}{ecore\+\_\+con\+\_\+server\+\_\+data\+\_\+get}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Retrieves the data associated with the given server. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API void $\ast$ \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga272d6a2100f55d7c9adf44edfa493453}{ecore\+\_\+con\+\_\+server\+\_\+data\+\_\+set}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, void $\ast$data)
\begin{DoxyCompactList}\small\item\em Sets the data associated with the given server. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Con__Server__Group_gab0c376cb6b6b8f3e8e96b4f4cbe86a3d}{ecore\+\_\+con\+\_\+server\+\_\+connected\+\_\+get}} (const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Retrieves whether the given server is currently connected. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API int \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga2594c94da97401d08463fba7b9c1b0a2}{ecore\+\_\+con\+\_\+server\+\_\+port\+\_\+get}} (const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Retrieves the server port in use. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API double \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga048038c956602aa0b6a0a4d2490ce11f}{ecore\+\_\+con\+\_\+server\+\_\+uptime\+\_\+get}} (const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Checks how long a server has been connected. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API int \mbox{\hyperlink{group__Ecore__Con__Server__Group_gad01efce916804c31f6b2adcc6f607c6b}{ecore\+\_\+con\+\_\+server\+\_\+send}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, const void $\ast$data, int size)
\begin{DoxyCompactList}\small\item\em Sends the given data to the given server. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API void \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga6188bbadcdc4dc2f1878dd3fe18f6fb8}{ecore\+\_\+con\+\_\+server\+\_\+client\+\_\+limit\+\_\+set}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+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 
ECORE\+\_\+\+CON\+\_\+\+API const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga688ddcc88a17c527a6ea772a66bf53d6}{ecore\+\_\+con\+\_\+server\+\_\+clients\+\_\+get}} (const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Retrieves the current list of clients. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API const char $\ast$ \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga69fe8d9a0423028446b7e2fd873092de}{ecore\+\_\+con\+\_\+server\+\_\+ip\+\_\+get}} (const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Gets the IP address of a server that has been connected to. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API void \mbox{\hyperlink{group__Ecore__Con__Server__Group_gac1768fae815fb830a2df13ef08a2e5ae}{ecore\+\_\+con\+\_\+server\+\_\+flush}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Flushes all pending data to the given server. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API void \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga82e6c66eef006a627468f2ca4e619641}{ecore\+\_\+con\+\_\+server\+\_\+timeout\+\_\+set}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, double timeout)
\begin{DoxyCompactList}\small\item\em Sets the default time after which an inactive client will be disconnected. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API double \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga3457b5b0a7d306ae5f247416ecd98239}{ecore\+\_\+con\+\_\+server\+\_\+timeout\+\_\+get}} (const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Gets the default time after which an inactive client will be disconnected. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API int \mbox{\hyperlink{group__Ecore__Con__Server__Group_gaa65542db289e560e7d3929fe567780f6}{ecore\+\_\+con\+\_\+server\+\_\+fd\+\_\+get}} (const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Gets the fd that the server is connected to. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API int \mbox{\hyperlink{group__Ecore__Con__Server__Group_gafddf23aef03655e2f8be0cc1664b47a2}{ecore\+\_\+con\+\_\+client\+\_\+fd\+\_\+get}} (const \mbox{\hyperlink{group__Ecore__Con__Client__Group_gae9afe250f5420f4731d1a94050275756}{Ecore\+\_\+\+Con\+\_\+\+Client}} $\ast$cl)
\begin{DoxyCompactList}\small\item\em Gets the fd that the client is connected to. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga69d4027c8574be426402b9ef58d4987d}\label{group__Ecore__Con__Server__Group_ga69d4027c8574be426402b9ef58d4987d}} 
static \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} {\bfseries \+\_\+ecore\+\_\+con\+\_\+server\+\_\+server\+\_\+set} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, Eo $\ast$server)
\item 
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gaf85b122d964c4185bd4f0c29379d4124}\label{group__Ecore__Con__Server__Group_gaf85b122d964c4185bd4f0c29379d4124}} 
static \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} {\bfseries \+\_\+ecore\+\_\+con\+\_\+server\+\_\+server\+\_\+ssl\+\_\+job} (void $\ast$data, const \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} v, const \mbox{\hyperlink{structEina__Future}{Eina\+\_\+\+Future}} $\ast$dead)
\item 
static void \mbox{\hyperlink{group__Ecore__Con__Server__Group_gadd59943d7045f321c68a48479b01c5d8}{\+\_\+ecore\+\_\+con\+\_\+server\+\_\+proxy\+\_\+apply}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, const \mbox{\hyperlink{group__Ecore__Con__Socks__Group_ga8d73843280aa03c57d1266c9b5193264}{Ecore\+\_\+\+Con\+\_\+\+Socks}} $\ast$socks)
\begin{DoxyCompactList}\small\item\em convert {\itshape socks} to proxy URL string and apply using efl\+\_\+net\+\_\+dialer\+\_\+proxy\+\_\+set(). \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gabfe298b2d788f233e1e8204143f703d4}\label{group__Ecore__Con__Server__Group_gabfe298b2d788f233e1e8204143f703d4}} 
static \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} {\bfseries \+\_\+ecore\+\_\+con\+\_\+server\+\_\+dialer\+\_\+set} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, Eo $\ast$dialer)
\item 
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga94a582b643028f030b682e36e319904c}\label{group__Ecore__Con__Server__Group_ga94a582b643028f030b682e36e319904c}} 
static \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} {\bfseries \+\_\+ecore\+\_\+con\+\_\+server\+\_\+dialer\+\_\+ssl\+\_\+job} (void $\ast$data, const \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} v, const \mbox{\hyperlink{structEina__Future}{Eina\+\_\+\+Future}} $\ast$dead)
\item 
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga71261cd808320aa47f6fa13835b39bdb}\label{group__Ecore__Con__Server__Group_ga71261cd808320aa47f6fa13835b39bdb}} 
static \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} {\bfseries \+\_\+ecore\+\_\+con\+\_\+server\+\_\+dialer\+\_\+ssl\+\_\+upgrade\+\_\+job} (void $\ast$data, const \mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} v, const \mbox{\hyperlink{structEina__Future}{Eina\+\_\+\+Future}} $\ast$dead)
\item 
ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Con__Server__Group_gaff32bd112f4176c27590b1a6e2411fde}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+cert\+\_\+add}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, const char $\ast$cert)
\begin{DoxyCompactList}\small\item\em Adds an SSL certificate for use in ecore\+\_\+con functions. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga5df868550ee169de38ff7a7e96233d56}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+privkey\+\_\+add}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, const char $\ast$privkey)
\begin{DoxyCompactList}\small\item\em Adds an SSL private key for use in ecore\+\_\+con functions. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga04722004ed996a124ba0c34cc6d5e078}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+crl\+\_\+add}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, const char $\ast$crl)
\begin{DoxyCompactList}\small\item\em Adds an SSL CRL for use in ecore\+\_\+con functions. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Con__Server__Group_gab41f1f3bee9384757179bdf61d132225}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+cafile\+\_\+add}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, const char $\ast$cafile)
\begin{DoxyCompactList}\small\item\em Adds an SSL CA file for use in ecore\+\_\+con functions. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API void \mbox{\hyperlink{group__Ecore__Con__Server__Group_gae847bf08f3d0f9b8ae8241bb9dae0902}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Enables certificate verification on a server object. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API void \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga35f3bc4a92bcf8894c33065a3b94a5d5}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+basic}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Enables hostname-\/based certificate verification on a server object. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API void \mbox{\hyperlink{group__Ecore__Con__Server__Group_gacb3f0263a859c1a23a22e07591f77424}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+name\+\_\+set}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Sets the hostname to verify against in certificate verification. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API const char $\ast$ \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga154381626d65f4fa94e9659ad63d6531}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+name\+\_\+get}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr)
\begin{DoxyCompactList}\small\item\em Gets the hostname to verify against in certificate verification. \end{DoxyCompactList}\item 
ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Ecore__Con__Server__Group_gaad049552b3c8bc08a3dc5ddd7dc32ef4}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+upgrade}} (\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$svr, Ecore\+\_\+\+Con\+\_\+\+Type compl\+\_\+type)
\begin{DoxyCompactList}\small\item\em Upgrades a connection to a specified level of encryption. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This group of functions is applied to an \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} object. 

Functions that operate on Ecore server objects.

It doesn\textquotesingle{}t mean that they should be used in the server application, but on the server object. In fact, most of them should be used in the client application, when retrieving information or sending data.

Setting up a server is very simple\+: you just need to start it with \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga8993f75b5a4948b6b3975575d807fb21}{ecore\+\_\+con\+\_\+server\+\_\+add()}} and setup some callbacks to the events \mbox{\hyperlink{group__Ecore__Con__Events__Group_ga4757b5128fed6457910b996a65577111}{ECORE\+\_\+\+CON\+\_\+\+EVENT\+\_\+\+CLIENT\+\_\+\+ADD}}, \mbox{\hyperlink{group__Ecore__Con__Events__Group_gab6a527ae1614876cddf4630ff03ae1dc}{ECORE\+\_\+\+CON\+\_\+\+EVENT\+\_\+\+CLIENT\+\_\+\+DEL}} and \mbox{\hyperlink{group__Ecore__Con__Events__Group_gaf909435b89ab32078adc52f0a18c70c7}{ECORE\+\_\+\+CON\+\_\+\+EVENT\+\_\+\+CLIENT\+\_\+\+DATA}}, that will be called when a client is communicating with the server\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keywordflow}{if} (!(svr = \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga8993f75b5a4948b6b3975575d807fb21}{ecore\_con\_server\_add}}(ECORE\_CON\_REMOTE\_TCP, \textcolor{stringliteral}{"{}127.0.0.1"{}}, 8080, NULL)))}
\DoxyCodeLine{  exit(1);}
\DoxyCodeLine{}
\DoxyCodeLine{\mbox{\hyperlink{group__Ecore__Event__Group_ga886c90c3f917f87b3b4c931adcbc41c5}{ecore\_event\_handler\_add}}(\mbox{\hyperlink{group__Ecore__Con__Events__Group_ga4757b5128fed6457910b996a65577111}{ECORE\_CON\_EVENT\_CLIENT\_ADD}}, \_add\_cb, NULL);}
\DoxyCodeLine{\mbox{\hyperlink{group__Ecore__Event__Group_ga886c90c3f917f87b3b4c931adcbc41c5}{ecore\_event\_handler\_add}}(\mbox{\hyperlink{group__Ecore__Con__Events__Group_gab6a527ae1614876cddf4630ff03ae1dc}{ECORE\_CON\_EVENT\_CLIENT\_DEL}}, \_del\_cb, NULL);}
\DoxyCodeLine{\mbox{\hyperlink{group__Ecore__Event__Group_ga886c90c3f917f87b3b4c931adcbc41c5}{ecore\_event\_handler\_add}}(\mbox{\hyperlink{group__Ecore__Con__Events__Group_gaf909435b89ab32078adc52f0a18c70c7}{ECORE\_CON\_EVENT\_CLIENT\_DATA}}, \_data\_cb, NULL);}
\DoxyCodeLine{}
\DoxyCodeLine{\mbox{\hyperlink{group__Ecore__Main__Loop__Group_gaf103b9f668bb3e4fed12e52c6180132d}{ecore\_main\_loop\_begin}}();}

\end{DoxyCode}


The function \mbox{\hyperlink{group__Ecore__Con__Server__Group_gab1bc5a7692c3c36af00e1ac1db257e98}{ecore\+\_\+con\+\_\+server\+\_\+connect()}} can be used to write a client that connects to a server. The resulting code will be very similar to the server code\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keywordflow}{if} (!(svr = \mbox{\hyperlink{group__Ecore__Con__Server__Group_gab1bc5a7692c3c36af00e1ac1db257e98}{ecore\_con\_server\_connect}}(ECORE\_CON\_REMOTE\_TCP, \textcolor{stringliteral}{"{}127.0.0.1"{}}, 8080, NULL)))}
\DoxyCodeLine{  exit(1);}
\DoxyCodeLine{}
\DoxyCodeLine{\mbox{\hyperlink{group__Ecore__Event__Group_ga886c90c3f917f87b3b4c931adcbc41c5}{ecore\_event\_handler\_add}}(\mbox{\hyperlink{group__Ecore__Con__Events__Group_ga333583a2fbee7c0e3e7fda4a829340be}{ECORE\_CON\_EVENT\_SERVER\_ADD}}, \_add\_cb, NULL);}
\DoxyCodeLine{\mbox{\hyperlink{group__Ecore__Event__Group_ga886c90c3f917f87b3b4c931adcbc41c5}{ecore\_event\_handler\_add}}(\mbox{\hyperlink{group__Ecore__Con__Events__Group_ga8577770d5208d3f03d6fbfd1880334ea}{ECORE\_CON\_EVENT\_SERVER\_DEL}}, \_del\_cb, NULL);}
\DoxyCodeLine{\mbox{\hyperlink{group__Ecore__Event__Group_ga886c90c3f917f87b3b4c931adcbc41c5}{ecore\_event\_handler\_add}}(\mbox{\hyperlink{group__Ecore__Con__Events__Group_gac42c3834093f29434298daedd421b2ed}{ECORE\_CON\_EVENT\_SERVER\_DATA}}, \_data\_cb, NULL);}
\DoxyCodeLine{}
\DoxyCodeLine{\mbox{\hyperlink{group__Ecore__Main__Loop__Group_gaf103b9f668bb3e4fed12e52c6180132d}{ecore\_main\_loop\_begin}}();}

\end{DoxyCode}


After these two pieces of code are executed, respectively, in the server and client code, the server will be up and running and the client will try to connect to it. The connection, with its subsequent messages being sent from server to client and client to server, can be represented in the following sequence diagram\+:

  
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\\textwidth]{ecore_con-client-server}}
\end{DoxyImageNoCaption}


Please notice the important difference between these two codes\+: the first is used for writing a {\bfseries{server}}, while the second should be used for writing a {\bfseries{client}}.

A reference for the {\ttfamily client} functions can be found at \mbox{\hyperlink{group__Ecore__Con__Client__Group}{Ecore Connection Client Functions}}.

Examples of usage for this API can be found here\+: \begin{DoxyItemize}
\item \mbox{\hyperlink{ecore_con_server_simple_example_c}{Ecore\+\_\+\+Con -\/ Creating a server}} \item \mbox{\hyperlink{ecore_con_client_simple_example_c}{Ecore\+\_\+\+Con -\/ Creating a client}} \end{DoxyItemize}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga06c138783b4658b9e7304b5e3cbb0bb3}\label{group__Ecore__Con__Server__Group_ga06c138783b4658b9e7304b5e3cbb0bb3}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_local\_path\_new@{ecore\_con\_local\_path\_new}}
\index{ecore\_con\_local\_path\_new@{ecore\_con\_local\_path\_new}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_local\_path\_new()}{ecore\_con\_local\_path\_new()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API char $\ast$ ecore\+\_\+con\+\_\+local\+\_\+path\+\_\+new (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{is\+\_\+system,  }\item[{const char $\ast$}]{name,  }\item[{int}]{port }\end{DoxyParamCaption})}



Creates a local path to connect the socket. 

In the old API, \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga8993f75b5a4948b6b3975575d807fb21}{ecore\+\_\+con\+\_\+server\+\_\+add()}} and \mbox{\hyperlink{group__Ecore__Con__Server__Group_gab1bc5a7692c3c36af00e1ac1db257e98}{ecore\+\_\+con\+\_\+server\+\_\+connect()}} calculated a local path for connections using {\ttfamily ECORE\+\_\+\+CON\+\_\+\+LOCAL\+\_\+\+USER} and {\ttfamily ECORE\+\_\+\+CON\+\_\+\+LOCAL\+\_\+\+SYSTEM}, this function returns that path allocated so it can be used in applications that want to connect to that path without replicating its logic.

\begin{DoxyItemize}
\item If {\itshape type} is {\ttfamily ECORE\+\_\+\+CON\+\_\+\+LOCAL\+\_\+\+USER}, the server will connect to the Unix socket. The path to the socket is taken from XDG\+\_\+\+RUNTIME\+\_\+\+DIR, if that is not set, then from HOME, even if this is not set, then from TMPDIR. If none is set, then path would be /tmp. From this path the function would connect to socket at \char`\"{}\mbox{[}path\mbox{]}/.\+ecore/\mbox{[}name\mbox{]}/\mbox{[}port\mbox{]}\char`\"{}. If port is negative, then to socket at \char`\"{}\mbox{[}path\mbox{]}/.\+ecore/\mbox{[}name\mbox{]}\char`\"{}. \item If {\itshape type} is {\ttfamily ECORE\+\_\+\+CON\+\_\+\+LOCAL\+\_\+\+SYSTEM}, the server will connect to Unix socket at \char`\"{}/tmp/.\+ecore\+\_\+service$\vert$\mbox{[}name\mbox{]}$\vert$\mbox{[}port\mbox{]}\char`\"{}. If port is negative, then to Unix socket at \char`\"{}/tmp/.\+ecore\+\_\+service$\vert$\mbox{[}name\mbox{]}\char`\"{}.\end{DoxyItemize}

\begin{DoxyParams}{Parameters}
{\em is\+\_\+system} & If \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, will be a system wide socket similar to {\ttfamily ECORE\+\_\+\+CON\+\_\+\+LOCAL\+\_\+\+SYSTEM}. If \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, then it\textquotesingle{}s similar to {\ttfamily ECORE\+\_\+\+CON\+\_\+\+LOCAL\+\_\+\+USER}. \\
\hline
{\em name} & Name to associate with the socket. It is used when generating the socket name of a Unix socket, {\ttfamily NULL} will not be accepted. \\
\hline
{\em port} & Number to identify socket. When a Unix socket is used, it becomes part of the socket name.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
NULL on failure or newly allocated path string on success, remember to free() it after usage.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Tools__Group_gad2748011998106088d3a54e3d1115715}{eina\+\_\+environment\+\_\+tmp\+\_\+get()}}, and \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.



Referenced by \mbox{\hyperlink{group__Ecore__IPC__Server__Group_ga4314631af279786f7a3d3d043f96f8d4}{ecore\+\_\+ipc\+\_\+server\+\_\+add()}}, and \mbox{\hyperlink{group__Ecore__IPC__Server__Group_gae7048746096a322f343f5499c8892c88}{ecore\+\_\+ipc\+\_\+server\+\_\+connect()}}.

\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga8993f75b5a4948b6b3975575d807fb21}\label{group__Ecore__Con__Server__Group_ga8993f75b5a4948b6b3975575d807fb21}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_add@{ecore\_con\_server\_add}}
\index{ecore\_con\_server\_add@{ecore\_con\_server\_add}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_add()}{ecore\_con\_server\_add()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$ ecore\+\_\+con\+\_\+server\+\_\+add (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Con\+\_\+\+Type}]{type,  }\item[{const char $\ast$}]{name,  }\item[{int}]{port,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Creates a server to listen for connections. 


\begin{DoxyParams}{Parameters}
{\em type} & The connection type. \\
\hline
{\em name} & Name to associate with the socket. It is used when generating the socket name of a Unix socket, or for determining what host to listen on for TCP sockets. {\ttfamily NULL} will not be accepted. \\
\hline
{\em port} & Number to identify socket. When a Unix socket is used, it becomes part of the socket name. When a TCP socket is used, it is used as the TCP port. \\
\hline
{\em data} & Data to associate with the created Ecore\+\_\+\+Con\+\_\+\+Server object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new Ecore\+\_\+\+Con\+\_\+\+Server.
\end{DoxyReturn}
The socket on which the server listens depends on the connection type\+: \begin{DoxyItemize}
\item If {\itshape type} is {\ttfamily ECORE\+\_\+\+CON\+\_\+\+LOCAL\+\_\+\+USER}, the server will listen on the Unix socket. The path to the socket is taken from XDG\+\_\+\+RUNTIME\+\_\+\+DIR, if that is not set, then from HOME, even if this is not set, then from TMPDIR. If none is set, then path would be /tmp. From this path socket would be created as \char`\"{}\mbox{[}path\mbox{]}/.\+ecore/\mbox{[}name\mbox{]}/\mbox{[}port\mbox{]}\char`\"{}. If port is negative, then \char`\"{}\mbox{[}path\mbox{]}/.\+ecore/\mbox{[}name\mbox{]}\char`\"{}. \item If {\itshape type} is {\ttfamily ECORE\+\_\+\+CON\+\_\+\+LOCAL\+\_\+\+SYSTEM}, the server will listen on Unix socket \char`\"{}/tmp/.\+ecore\+\_\+service$\vert$\mbox{[}name\mbox{]}$\vert$\mbox{[}port\mbox{]}\char`\"{}. If port is negative, then \char`\"{}/tmp/.\+ecore\+\_\+service$\vert$\mbox{[}name\mbox{]}\char`\"{}. \item If {\itshape type} is {\ttfamily ECORE\+\_\+\+CON\+\_\+\+LOCAL\+\_\+\+ABSTRACT}, then port number is not considered while creating the socket. \item If {\itshape type} is {\ttfamily ECORE\+\_\+\+CON\+\_\+\+REMOTE\+\_\+\+TCP}, the server will listen on TCP port {\ttfamily port}.\end{DoxyItemize}
More information about the {\ttfamily type} can be found at \+\_\+\+Ecore\+\_\+\+Con\+\_\+\+Type.

The {\ttfamily data} parameter can be fetched later using \mbox{\hyperlink{group__Ecore__Con__Server__Group_gaa2d84f142e670a7db42070b48bad9c0a}{ecore\+\_\+con\+\_\+server\+\_\+data\+\_\+get()}} or changed with \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga272d6a2100f55d7c9adf44edfa493453}{ecore\+\_\+con\+\_\+server\+\_\+data\+\_\+set()}}.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga06c138783b4658b9e7304b5e3cbb0bb3}{ecore\+\_\+con\+\_\+local\+\_\+path\+\_\+new()}}
\end{DoxySeeAlso}
\begin{DoxyNote}{Note}
This API is deprecated and new code should use \#\+EFL\+\_\+\+NET\+\_\+\+SERVER\+\_\+\+SIMPLE\+\_\+\+CLASS. See \begin{DoxyItemize}
\item efl\+\_\+net\+\_\+server\+\_\+simple\+\_\+example.\+c \end{DoxyItemize}

\end{DoxyNote}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_server_example_8c-example}{ecore\+\_\+con\+\_\+server\+\_\+example.\+c}}, and \mbox{\hyperlink{ecore_con_server_simple_example_8c-example}{ecore\+\_\+con\+\_\+server\+\_\+simple\+\_\+example.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga4e028a0c5bd5743068c1c3f2302dc0e8}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+GOTO}}, and \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gab1bc5a7692c3c36af00e1ac1db257e98}\label{group__Ecore__Con__Server__Group_gab1bc5a7692c3c36af00e1ac1db257e98}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_connect@{ecore\_con\_server\_connect}}
\index{ecore\_con\_server\_connect@{ecore\_con\_server\_connect}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_connect()}{ecore\_con\_server\_connect()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$ ecore\+\_\+con\+\_\+server\+\_\+connect (\begin{DoxyParamCaption}\item[{Ecore\+\_\+\+Con\+\_\+\+Type}]{type,  }\item[{const char $\ast$}]{name,  }\item[{int}]{port,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Creates a connection to the specified server and return an associated object. 


\begin{DoxyParams}{Parameters}
{\em type} & The connection type. \\
\hline
{\em name} & Name used when determining what socket to connect to. It is used to generate the socket name when the socket is a Unix socket. It is used as the hostname when connecting with a TCP socket. \\
\hline
{\em port} & Number to identify the socket to connect to. Used when generating the socket name for a Unix socket, or as the TCP port when connecting to a TCP socket. \\
\hline
{\em data} & Data to associate with the created Ecore\+\_\+\+Con\+\_\+\+Server object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new Ecore\+\_\+\+Con\+\_\+\+Server.
\end{DoxyReturn}
The socket to which the connection is made depends on the connection type\+: \begin{DoxyItemize}
\item If {\itshape type} is {\ttfamily ECORE\+\_\+\+CON\+\_\+\+LOCAL\+\_\+\+USER}, the server will connect to the Unix socket. The path to the socket is taken from XDG\+\_\+\+RUNTIME\+\_\+\+DIR, if that is not set, then from HOME, even if this is not set, then from TMPDIR. If none is set, then path would be /tmp. From this path the function would connect to socket at \char`\"{}\mbox{[}path\mbox{]}/.\+ecore/\mbox{[}name\mbox{]}/\mbox{[}port\mbox{]}\char`\"{}. If port is negative, then to socket at \char`\"{}\mbox{[}path\mbox{]}/.\+ecore/\mbox{[}name\mbox{]}\char`\"{}. \item If {\itshape type} is {\ttfamily ECORE\+\_\+\+CON\+\_\+\+LOCAL\+\_\+\+SYSTEM}, the server will connect to Unix socket at \char`\"{}/tmp/.\+ecore\+\_\+service$\vert$\mbox{[}name\mbox{]}$\vert$\mbox{[}port\mbox{]}\char`\"{}. If port is negative, then to Unix socket at \char`\"{}/tmp/.\+ecore\+\_\+service$\vert$\mbox{[}name\mbox{]}\char`\"{}. \item If {\itshape type} is {\ttfamily ECORE\+\_\+\+CON\+\_\+\+LOCAL\+\_\+\+ABSTRACT}, then port number is not considered while connecting to socket. \item If {\itshape type} is {\ttfamily ECORE\+\_\+\+CON\+\_\+\+REMOTE\+\_\+\+TCP}, the server will listen on TCP port {\ttfamily port}.\end{DoxyItemize}
More information about the {\ttfamily type} can be found at \+\_\+\+Ecore\+\_\+\+Con\+\_\+\+Type.

This function won\textquotesingle{}t block. It will either succeed, or fail due to invalid parameters, failed memory allocation, etc., returning {\ttfamily NULL} on that case.

However, even if this call returns a valid \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}}, the connection will only be successfully completed if an event of type \mbox{\hyperlink{group__Ecore__Con__Events__Group_ga333583a2fbee7c0e3e7fda4a829340be}{ECORE\+\_\+\+CON\+\_\+\+EVENT\+\_\+\+SERVER\+\_\+\+ADD}} is received. If it fails to complete, an \mbox{\hyperlink{group__Ecore__Con__Events__Group_ga8577770d5208d3f03d6fbfd1880334ea}{ECORE\+\_\+\+CON\+\_\+\+EVENT\+\_\+\+SERVER\+\_\+\+DEL}} will be received.

The created object gets deleted automatically if the connection to the server is lost.

The {\ttfamily data} parameter can be fetched later using \mbox{\hyperlink{group__Ecore__Con__Server__Group_gaa2d84f142e670a7db42070b48bad9c0a}{ecore\+\_\+con\+\_\+server\+\_\+data\+\_\+get()}} or changed with \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga272d6a2100f55d7c9adf44edfa493453}{ecore\+\_\+con\+\_\+server\+\_\+data\+\_\+set()}}.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga06c138783b4658b9e7304b5e3cbb0bb3}{ecore\+\_\+con\+\_\+local\+\_\+path\+\_\+new()}}
\end{DoxySeeAlso}
\begin{DoxyNote}{Note}
This API is deprecated and new code should use \#\+EFL\+\_\+\+NET\+\_\+\+DIALER\+\_\+\+SIMPLE\+\_\+\+CLASS. See \begin{DoxyItemize}
\item efl\+\_\+net\+\_\+dialer\+\_\+simple\+\_\+example.\+c \end{DoxyItemize}

\end{DoxyNote}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+example.\+c}}, and \mbox{\hyperlink{ecore_con_client_simple_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+simple\+\_\+example.\+c}}.\end{Desc}


References \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__Con__Server__Group_ga2c73087dc4a05e80446a64e7420f87a3}\label{group__Ecore__Con__Server__Group_ga2c73087dc4a05e80446a64e7420f87a3}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_del@{ecore\_con\_server\_del}}
\index{ecore\_con\_server\_del@{ecore\_con\_server\_del}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_del()}{ecore\_con\_server\_del()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API void $\ast$ ecore\+\_\+con\+\_\+server\+\_\+del (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Closes the connection and free the given server. 


\begin{DoxyParams}{Parameters}
{\em svr} & The given server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Data associated with the server when it was created.
\end{DoxyReturn}
All the clients connected to this server will be disconnected.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga8993f75b5a4948b6b3975575d807fb21}{ecore\+\_\+con\+\_\+server\+\_\+add}}, \mbox{\hyperlink{group__Ecore__Con__Server__Group_gab1bc5a7692c3c36af00e1ac1db257e98}{ecore\+\_\+con\+\_\+server\+\_\+connect}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+example.\+c}}, \mbox{\hyperlink{ecore_con_client_simple_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+simple\+\_\+example.\+c}}, and \mbox{\hyperlink{ecore_con_server_example_8c-example}{ecore\+\_\+con\+\_\+server\+\_\+example.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga8794c4cebaa94f553ed7fd067edad090}\label{group__Ecore__Con__Server__Group_ga8794c4cebaa94f553ed7fd067edad090}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_name\_get@{ecore\_con\_server\_name\_get}}
\index{ecore\_con\_server\_name\_get@{ecore\_con\_server\_name\_get}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_name\_get()}{ecore\_con\_server\_name\_get()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API const char $\ast$ ecore\+\_\+con\+\_\+server\+\_\+name\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Retrieves the name of server. 

The name returned is the name used to connect on this server.


\begin{DoxyParams}{Parameters}
{\em svr} & The given server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The name of the server. 
\end{DoxyReturn}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_simple_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+simple\+\_\+example.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gaa2d84f142e670a7db42070b48bad9c0a}\label{group__Ecore__Con__Server__Group_gaa2d84f142e670a7db42070b48bad9c0a}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_data\_get@{ecore\_con\_server\_data\_get}}
\index{ecore\_con\_server\_data\_get@{ecore\_con\_server\_data\_get}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_data\_get()}{ecore\_con\_server\_data\_get()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API void $\ast$ ecore\+\_\+con\+\_\+server\+\_\+data\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Retrieves the data associated with the given server. 


\begin{DoxyParams}{Parameters}
{\em svr} & The given server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The associated data.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga272d6a2100f55d7c9adf44edfa493453}{ecore\+\_\+con\+\_\+server\+\_\+data\+\_\+set()}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_simple_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+simple\+\_\+example.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga272d6a2100f55d7c9adf44edfa493453}\label{group__Ecore__Con__Server__Group_ga272d6a2100f55d7c9adf44edfa493453}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_data\_set@{ecore\_con\_server\_data\_set}}
\index{ecore\_con\_server\_data\_set@{ecore\_con\_server\_data\_set}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_data\_set()}{ecore\_con\_server\_data\_set()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API void $\ast$ ecore\+\_\+con\+\_\+server\+\_\+data\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{void $\ast$}]{data }\end{DoxyParamCaption})}



Sets the data associated with the given server. 


\begin{DoxyParams}{Parameters}
{\em svr} & The given server. \\
\hline
{\em data} & The data to associate with {\ttfamily svr}. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The previously associated data, if any.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Con__Server__Group_gaa2d84f142e670a7db42070b48bad9c0a}{ecore\+\_\+con\+\_\+server\+\_\+data\+\_\+get()}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_simple_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+simple\+\_\+example.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gab0c376cb6b6b8f3e8e96b4f4cbe86a3d}\label{group__Ecore__Con__Server__Group_gab0c376cb6b6b8f3e8e96b4f4cbe86a3d}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_connected\_get@{ecore\_con\_server\_connected\_get}}
\index{ecore\_con\_server\_connected\_get@{ecore\_con\_server\_connected\_get}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_connected\_get()}{ecore\_con\_server\_connected\_get()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+con\+\_\+server\+\_\+connected\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Retrieves whether the given server is currently connected. 


\begin{DoxyParams}{Parameters}
{\em svr} & The given server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if the server is connected, {\ttfamily EINA\+\_\+\+FALSE} otherwise. 
\end{DoxyReturn}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_simple_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+simple\+\_\+example.\+c}}.\end{Desc}


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

\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga2594c94da97401d08463fba7b9c1b0a2}\label{group__Ecore__Con__Server__Group_ga2594c94da97401d08463fba7b9c1b0a2}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_port\_get@{ecore\_con\_server\_port\_get}}
\index{ecore\_con\_server\_port\_get@{ecore\_con\_server\_port\_get}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_port\_get()}{ecore\_con\_server\_port\_get()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API int ecore\+\_\+con\+\_\+server\+\_\+port\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Retrieves the server port in use. 


\begin{DoxyParams}{Parameters}
{\em svr} & The given server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The server port in use.
\end{DoxyReturn}
The port where the server is listening for connections. \begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_simple_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+simple\+\_\+example.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga048038c956602aa0b6a0a4d2490ce11f}\label{group__Ecore__Con__Server__Group_ga048038c956602aa0b6a0a4d2490ce11f}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_uptime\_get@{ecore\_con\_server\_uptime\_get}}
\index{ecore\_con\_server\_uptime\_get@{ecore\_con\_server\_uptime\_get}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_uptime\_get()}{ecore\_con\_server\_uptime\_get()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API double ecore\+\_\+con\+\_\+server\+\_\+uptime\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Checks how long a server has been connected. 


\begin{DoxyParams}{Parameters}
{\em svr} & The server to check \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The total time, in seconds, that the server has been connected/running.
\end{DoxyReturn}
This function is used to find out the time that has been elapsed since \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga8993f75b5a4948b6b3975575d807fb21}{ecore\+\_\+con\+\_\+server\+\_\+add()}} succeeded. \begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_server_simple_example_8c-example}{ecore\+\_\+con\+\_\+server\+\_\+simple\+\_\+example.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Ecore__Time__Group_ga98f2439b5d3e7114a75bfe2f0c22c4e9}{ecore\+\_\+time\+\_\+get()}}.

\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gad01efce916804c31f6b2adcc6f607c6b}\label{group__Ecore__Con__Server__Group_gad01efce916804c31f6b2adcc6f607c6b}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_send@{ecore\_con\_server\_send}}
\index{ecore\_con\_server\_send@{ecore\_con\_server\_send}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_send()}{ecore\_con\_server\_send()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API int ecore\+\_\+con\+\_\+server\+\_\+send (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{const void $\ast$}]{data,  }\item[{int}]{size }\end{DoxyParamCaption})}



Sends the given data to the given server. 


\begin{DoxyParams}{Parameters}
{\em svr} & The given server. \\
\hline
{\em data} & The given data. \\
\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}
This function will send the given data to the server as soon as the program is back to the main loop. Thus, this function returns immediately (non-\/blocking). If the data needs to be sent {\bfseries{now}}, call \mbox{\hyperlink{group__Ecore__Con__Server__Group_gac1768fae815fb830a2df13ef08a2e5ae}{ecore\+\_\+con\+\_\+server\+\_\+flush()}} after this one.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Con__Client__Group_ga89f79f973aeea2505078d87cb7b045b3}{ecore\+\_\+con\+\_\+client\+\_\+send()}} 

\mbox{\hyperlink{group__Ecore__Con__Server__Group_gac1768fae815fb830a2df13ef08a2e5ae}{ecore\+\_\+con\+\_\+server\+\_\+flush()}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+example.\+c}}, and \mbox{\hyperlink{ecore_con_client_simple_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+simple\+\_\+example.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Eina__Binary__Buffer__Group_gafed8f157ce1542b0e92fc6668649af08}{eina\+\_\+binbuf\+\_\+append\+\_\+length()}}, \mbox{\hyperlink{group__Eina__Binary__Buffer__Group_ga9cad59aa480e4b9daebe278507db4e5a}{eina\+\_\+binbuf\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Error__Group_gac420af42486bcbb879c4be67eacc6c2a}{eina\+\_\+error\+\_\+msg\+\_\+get()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gae7cf7b1d66fa9022242e09fd53c06bb2}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+FALSE\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \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__Con__Server__Group_ga6188bbadcdc4dc2f1878dd3fe18f6fb8}\label{group__Ecore__Con__Server__Group_ga6188bbadcdc4dc2f1878dd3fe18f6fb8}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_client\_limit\_set@{ecore\_con\_server\_client\_limit\_set}}
\index{ecore\_con\_server\_client\_limit\_set@{ecore\_con\_server\_client\_limit\_set}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_client\_limit\_set()}{ecore\_con\_server\_client\_limit\_set()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API void ecore\+\_\+con\+\_\+server\+\_\+client\+\_\+limit\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+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. 


\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}
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{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_server_simple_example_8c-example}{ecore\+\_\+con\+\_\+server\+\_\+simple\+\_\+example.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga688ddcc88a17c527a6ea772a66bf53d6}\label{group__Ecore__Con__Server__Group_ga688ddcc88a17c527a6ea772a66bf53d6}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_clients\_get@{ecore\_con\_server\_clients\_get}}
\index{ecore\_con\_server\_clients\_get@{ecore\_con\_server\_clients\_get}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_clients\_get()}{ecore\_con\_server\_clients\_get()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API const \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ ecore\+\_\+con\+\_\+server\+\_\+clients\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Retrieves the current list of clients. 

Each node in the returned list points to an Efl\+\_\+\+Network\+\_\+\+Client. This list cannot be modified or freed. It can also change if new clients are connected or disconnected, and will become invalid when the server is deleted/freed.


\begin{DoxyParams}{Parameters}
{\em svr} & The given server. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The list of clients on this server. 
\end{DoxyReturn}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_server_simple_example_8c-example}{ecore\+\_\+con\+\_\+server\+\_\+simple\+\_\+example.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga69fe8d9a0423028446b7e2fd873092de}\label{group__Ecore__Con__Server__Group_ga69fe8d9a0423028446b7e2fd873092de}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_ip\_get@{ecore\_con\_server\_ip\_get}}
\index{ecore\_con\_server\_ip\_get@{ecore\_con\_server\_ip\_get}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_ip\_get()}{ecore\_con\_server\_ip\_get()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API const char $\ast$ ecore\+\_\+con\+\_\+server\+\_\+ip\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+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 {\ttfamily NULL} is returned. 
\end{DoxyReturn}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+example.\+c}}, and \mbox{\hyperlink{ecore_con_client_simple_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+simple\+\_\+example.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gac1768fae815fb830a2df13ef08a2e5ae}\label{group__Ecore__Con__Server__Group_gac1768fae815fb830a2df13ef08a2e5ae}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_flush@{ecore\_con\_server\_flush}}
\index{ecore\_con\_server\_flush@{ecore\_con\_server\_flush}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_flush()}{ecore\_con\_server\_flush()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API void ecore\+\_\+con\+\_\+server\+\_\+flush (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Flushes all pending data to the given server. 


\begin{DoxyParams}{Parameters}
{\em svr} & The given server.\\
\hline
\end{DoxyParams}
This function will block until all data is sent to the server.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Con__Server__Group_gad01efce916804c31f6b2adcc6f607c6b}{ecore\+\_\+con\+\_\+server\+\_\+send()}} 

\mbox{\hyperlink{group__Ecore__Con__Client__Group_ga8eeeb449d9af80885a26309471330de9}{ecore\+\_\+con\+\_\+client\+\_\+flush()}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+example.\+c}}, and \mbox{\hyperlink{ecore_con_client_simple_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+simple\+\_\+example.\+c}}.\end{Desc}


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



Referenced by \mbox{\hyperlink{group__Ecore__Con__SSL__Group_ga79e98a738901760ba342f9c4927986f4}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+upgrade()}}.

\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga82e6c66eef006a627468f2ca4e619641}\label{group__Ecore__Con__Server__Group_ga82e6c66eef006a627468f2ca4e619641}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_timeout\_set@{ecore\_con\_server\_timeout\_set}}
\index{ecore\_con\_server\_timeout\_set@{ecore\_con\_server\_timeout\_set}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_timeout\_set()}{ecore\_con\_server\_timeout\_set()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API void ecore\+\_\+con\+\_\+server\+\_\+timeout\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{double}]{timeout }\end{DoxyParamCaption})}



Sets the default time after which an inactive client will be disconnected. 


\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
{\em timeout} & The timeout, in seconds, to disconnect after.\\
\hline
\end{DoxyParams}
This function is used by the server to set the default idle timeout on clients. If the any of the clients becomes idle for a time higher than this value, it will be disconnected. A value of \texorpdfstring{$<$}{<} 1 disables the idle timeout.

This timeout is not affected by the one set by \mbox{\hyperlink{group__Ecore__Con__Client__Group_ga02e595c6d808c590822abd7c8e2109aa}{ecore\+\_\+con\+\_\+client\+\_\+timeout\+\_\+set()}}. A client will be disconnected whenever the client or the server timeout is reached. That means, the lower timeout value will be used for that client if \mbox{\hyperlink{group__Ecore__Con__Client__Group_ga02e595c6d808c590822abd7c8e2109aa}{ecore\+\_\+con\+\_\+client\+\_\+timeout\+\_\+set()}} is used on it.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga3457b5b0a7d306ae5f247416ecd98239}{ecore\+\_\+con\+\_\+server\+\_\+timeout\+\_\+get()}} 

\mbox{\hyperlink{group__Ecore__Con__Client__Group_ga02e595c6d808c590822abd7c8e2109aa}{ecore\+\_\+con\+\_\+client\+\_\+timeout\+\_\+set()}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_server_simple_example_8c-example}{ecore\+\_\+con\+\_\+server\+\_\+simple\+\_\+example.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga3457b5b0a7d306ae5f247416ecd98239}\label{group__Ecore__Con__Server__Group_ga3457b5b0a7d306ae5f247416ecd98239}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_timeout\_get@{ecore\_con\_server\_timeout\_get}}
\index{ecore\_con\_server\_timeout\_get@{ecore\_con\_server\_timeout\_get}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_timeout\_get()}{ecore\_con\_server\_timeout\_get()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API double ecore\+\_\+con\+\_\+server\+\_\+timeout\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Gets the default time after which an inactive client will be disconnected. 


\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The timeout, in seconds, to disconnect after.
\end{DoxyReturn}
This function is used to get the idle timeout for clients. A value of \texorpdfstring{$<$}{<} 1 means the idle timeout is disabled.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga82e6c66eef006a627468f2ca4e619641}{ecore\+\_\+con\+\_\+server\+\_\+timeout\+\_\+set()}} 

\mbox{\hyperlink{group__Ecore__Con__Client__Group_ga4b92349b073af697c64626af9f724c5d}{ecore\+\_\+con\+\_\+client\+\_\+timeout\+\_\+get()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gaa65542db289e560e7d3929fe567780f6}\label{group__Ecore__Con__Server__Group_gaa65542db289e560e7d3929fe567780f6}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_server\_fd\_get@{ecore\_con\_server\_fd\_get}}
\index{ecore\_con\_server\_fd\_get@{ecore\_con\_server\_fd\_get}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_server\_fd\_get()}{ecore\_con\_server\_fd\_get()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API int ecore\+\_\+con\+\_\+server\+\_\+fd\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Gets the fd that the server is connected to. 


\begin{DoxyParams}{Parameters}
{\em svr} & The server object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The fd, or {\ttfamily -\/1} on failure
\end{DoxyReturn}
This function returns the fd which is used by the underlying server connection. It should not be tampered with unless you REALLY know what you are doing. \begin{DoxyNote}{Note}
This function is only valid for servers created with \mbox{\hyperlink{group__Ecore__Con__Server__Group_gab1bc5a7692c3c36af00e1ac1db257e98}{ecore\+\_\+con\+\_\+server\+\_\+connect()}}. 
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
Seriously. Don\textquotesingle{}t use this unless you know what you are doing. 
\end{DoxyWarning}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gafddf23aef03655e2f8be0cc1664b47a2}\label{group__Ecore__Con__Server__Group_gafddf23aef03655e2f8be0cc1664b47a2}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_client\_fd\_get@{ecore\_con\_client\_fd\_get}}
\index{ecore\_con\_client\_fd\_get@{ecore\_con\_client\_fd\_get}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_client\_fd\_get()}{ecore\_con\_client\_fd\_get()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API int ecore\+\_\+con\+\_\+client\+\_\+fd\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Ecore__Con__Client__Group_gae9afe250f5420f4731d1a94050275756}{Ecore\+\_\+\+Con\+\_\+\+Client}} $\ast$}]{cl }\end{DoxyParamCaption})}



Gets the fd that the client is connected to. 


\begin{DoxyParams}{Parameters}
{\em cl} & The client object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The fd, or {\ttfamily -\/1} on failure
\end{DoxyReturn}
This function returns the fd which is used by the underlying client connection. It should not be tampered with unless you REALLY know what you are doing. \begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gadd59943d7045f321c68a48479b01c5d8}\label{group__Ecore__Con__Server__Group_gadd59943d7045f321c68a48479b01c5d8}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!\_ecore\_con\_server\_proxy\_apply@{\_ecore\_con\_server\_proxy\_apply}}
\index{\_ecore\_con\_server\_proxy\_apply@{\_ecore\_con\_server\_proxy\_apply}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{\_ecore\_con\_server\_proxy\_apply()}{\_ecore\_con\_server\_proxy\_apply()}}
{\footnotesize\ttfamily static void \+\_\+ecore\+\_\+con\+\_\+server\+\_\+proxy\+\_\+apply (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{const \mbox{\hyperlink{group__Ecore__Con__Socks__Group_ga8d73843280aa03c57d1266c9b5193264}{Ecore\+\_\+\+Con\+\_\+\+Socks}} $\ast$}]{socks }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



convert {\itshape socks} to proxy URL string and apply using efl\+\_\+net\+\_\+dialer\+\_\+proxy\+\_\+set(). 


\begin{DoxyParams}{Parameters}
{\em svr} & the server created by \mbox{\hyperlink{group__Ecore__Con__Server__Group_gab1bc5a7692c3c36af00e1ac1db257e98}{ecore\+\_\+con\+\_\+server\+\_\+connect()}}. \\
\hline
{\em socks} & the socks handle created by \mbox{\hyperlink{group__Ecore__Con__Socks__Group_ga8e05b07d5f20f8d1e87317090bc3a5c0}{ecore\+\_\+con\+\_\+socks4\+\_\+remote\+\_\+add()}} or \mbox{\hyperlink{group__Ecore__Con__Socks__Group_gaca49f4df380ef761111265ce95566a35}{ecore\+\_\+con\+\_\+socks5\+\_\+remote\+\_\+add()}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gaff32bd112f4176c27590b1a6e2411fde}\label{group__Ecore__Con__Server__Group_gaff32bd112f4176c27590b1a6e2411fde}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_ssl\_server\_cert\_add@{ecore\_con\_ssl\_server\_cert\_add}}
\index{ecore\_con\_ssl\_server\_cert\_add@{ecore\_con\_ssl\_server\_cert\_add}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_cert\_add()}{ecore\_con\_ssl\_server\_cert\_add()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+cert\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{const char $\ast$}]{cert }\end{DoxyParamCaption})}



Adds an SSL certificate for use in ecore\+\_\+con functions. 

Use this function to add a SSL PEM certificate. Simply specify the cert here to use it in the server object for connecting or listening. If there is an error loading the certificate, an error will automatically be logged. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object \\
\hline
{\em cert} & The path to the certificate. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+FALSE} if the file cannot be loaded, otherwise {\ttfamily EINA\+\_\+\+TRUE}. 
\end{DoxyReturn}


References \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_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1dbe0d7e3c6b10f4bd49a2a132d73269}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga5df868550ee169de38ff7a7e96233d56}\label{group__Ecore__Con__Server__Group_ga5df868550ee169de38ff7a7e96233d56}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_ssl\_server\_privkey\_add@{ecore\_con\_ssl\_server\_privkey\_add}}
\index{ecore\_con\_ssl\_server\_privkey\_add@{ecore\_con\_ssl\_server\_privkey\_add}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_privkey\_add()}{ecore\_con\_ssl\_server\_privkey\_add()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+privkey\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{const char $\ast$}]{key\+\_\+file }\end{DoxyParamCaption})}



Adds an SSL private key for use in ecore\+\_\+con functions. 

Use this function to add a SSL PEM private key. Simply specify the key file here to use it in the server object for connecting or listening. If there is an error loading the key, an error will automatically be logged. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
{\em key\+\_\+file} & The path to the key file. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+FALSE} if the file cannot be loaded, otherwise {\ttfamily EINA\+\_\+\+TRUE}. 
\end{DoxyReturn}


References \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_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1dbe0d7e3c6b10f4bd49a2a132d73269}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga04722004ed996a124ba0c34cc6d5e078}\label{group__Ecore__Con__Server__Group_ga04722004ed996a124ba0c34cc6d5e078}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_ssl\_server\_crl\_add@{ecore\_con\_ssl\_server\_crl\_add}}
\index{ecore\_con\_ssl\_server\_crl\_add@{ecore\_con\_ssl\_server\_crl\_add}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_crl\_add()}{ecore\_con\_ssl\_server\_crl\_add()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+crl\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{const char $\ast$}]{crl\+\_\+file }\end{DoxyParamCaption})}



Adds an SSL CRL for use in ecore\+\_\+con functions. 

Use this function to add a SSL PEM CRL file. Simply specify the CRL file here to use it in the server object for connecting or listening. If there is an error loading the CRL, an error will automatically be logged. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
{\em crl\+\_\+file} & The path to the CRL file. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+FALSE} if the file cannot be loaded, otherwise {\ttfamily EINA\+\_\+\+TRUE}. 
\end{DoxyReturn}


References \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_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1dbe0d7e3c6b10f4bd49a2a132d73269}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gab41f1f3bee9384757179bdf61d132225}\label{group__Ecore__Con__Server__Group_gab41f1f3bee9384757179bdf61d132225}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_ssl\_server\_cafile\_add@{ecore\_con\_ssl\_server\_cafile\_add}}
\index{ecore\_con\_ssl\_server\_cafile\_add@{ecore\_con\_ssl\_server\_cafile\_add}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_cafile\_add()}{ecore\_con\_ssl\_server\_cafile\_add()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+cafile\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{const char $\ast$}]{ca\+\_\+file }\end{DoxyParamCaption})}



Adds an SSL CA file for use in ecore\+\_\+con functions. 

Use this function to add a SSL PEM CA file. Simply specify the file here to use it in the server object for connecting or listening. If there is an error loading the CAs, an error will automatically be logged. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
{\em ca\+\_\+file} & The path to the CA file. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+FALSE} if the file cannot be loaded, otherwise {\ttfamily EINA\+\_\+\+TRUE}. 
\end{DoxyReturn}
\begin{DoxyNote}{Note}
since 1.\+2, this function can load directories. 
\end{DoxyNote}


References \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_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1dbe0d7e3c6b10f4bd49a2a132d73269}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gae847bf08f3d0f9b8ae8241bb9dae0902}\label{group__Ecore__Con__Server__Group_gae847bf08f3d0f9b8ae8241bb9dae0902}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_ssl\_server\_verify@{ecore\_con\_ssl\_server\_verify}}
\index{ecore\_con\_ssl\_server\_verify@{ecore\_con\_ssl\_server\_verify}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_verify()}{ecore\_con\_ssl\_server\_verify()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API void ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Enables certificate verification on a server object. 

Call this function on a server object before main loop has started to enable verification of certificates against loaded certificates. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga8b89fd35e22beece51443e29fe585935}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga35f3bc4a92bcf8894c33065a3b94a5d5}\label{group__Ecore__Con__Server__Group_ga35f3bc4a92bcf8894c33065a3b94a5d5}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_ssl\_server\_verify\_basic@{ecore\_con\_ssl\_server\_verify\_basic}}
\index{ecore\_con\_ssl\_server\_verify\_basic@{ecore\_con\_ssl\_server\_verify\_basic}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_verify\_basic()}{ecore\_con\_ssl\_server\_verify\_basic()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API void ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+basic (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Enables hostname-\/based certificate verification on a server object. 

Call this function on a server object before main loop has started to enable verification of certificates using ONLY their hostnames. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
This function has no effect when used on a listening server created by ecore\+\_\+con\+\_\+server\+\_\+add. 
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga8b89fd35e22beece51443e29fe585935}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gacb3f0263a859c1a23a22e07591f77424}\label{group__Ecore__Con__Server__Group_gacb3f0263a859c1a23a22e07591f77424}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_ssl\_server\_verify\_name\_set@{ecore\_con\_ssl\_server\_verify\_name\_set}}
\index{ecore\_con\_ssl\_server\_verify\_name\_set@{ecore\_con\_ssl\_server\_verify\_name\_set}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_verify\_name\_set()}{ecore\_con\_ssl\_server\_verify\_name\_set()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API void ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+name\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{const char $\ast$}]{name }\end{DoxyParamCaption})}



Sets the hostname to verify against in certificate verification. 

Sometimes the certificate hostname will not match the hostname that you are connecting to, and will instead match a different name. An example of this is that if you connect to talk.\+google.\+com to use Google Talk, you receive Google\textquotesingle{}s certificate for gmail.\+com. This certificate should be trusted, and so you must call this function with \char`\"{}gmail.\+com\char`\"{} as {\ttfamily name}. See RFC2818 for more details. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
{\em name} & The hostname to verify against \\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga8b89fd35e22beece51443e29fe585935}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN}}, and \mbox{\hyperlink{group__Eina__Stringshare__Group_ga9e32a137ce8c4cd5f6ec3dbde3dbedd8}{eina\+\_\+stringshare\+\_\+replace()}}.

\mbox{\Hypertarget{group__Ecore__Con__Server__Group_ga154381626d65f4fa94e9659ad63d6531}\label{group__Ecore__Con__Server__Group_ga154381626d65f4fa94e9659ad63d6531}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_ssl\_server\_verify\_name\_get@{ecore\_con\_ssl\_server\_verify\_name\_get}}
\index{ecore\_con\_ssl\_server\_verify\_name\_get@{ecore\_con\_ssl\_server\_verify\_name\_get}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_verify\_name\_get()}{ecore\_con\_ssl\_server\_verify\_name\_get()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API const char $\ast$ ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+name\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr }\end{DoxyParamCaption})}



Gets the hostname to verify against in certificate verification. 

This function returns the name which will be used to validate the SSL certificate common name (CN) or alt name (subject\+Alt\+Name). It will default to the {\ttfamily name} param in \mbox{\hyperlink{group__Ecore__Con__Server__Group_gab1bc5a7692c3c36af00e1ac1db257e98}{ecore\+\_\+con\+\_\+server\+\_\+connect()}}, but can be changed with \mbox{\hyperlink{group__Ecore__Con__SSL__Group_gacb3f0263a859c1a23a22e07591f77424}{ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+verify\+\_\+name\+\_\+set()}}. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The hostname which will be used 
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}
\mbox{\Hypertarget{group__Ecore__Con__Server__Group_gaad049552b3c8bc08a3dc5ddd7dc32ef4}\label{group__Ecore__Con__Server__Group_gaad049552b3c8bc08a3dc5ddd7dc32ef4}} 
\index{Ecore Connection Server Functions@{Ecore Connection Server Functions}!ecore\_con\_ssl\_server\_upgrade@{ecore\_con\_ssl\_server\_upgrade}}
\index{ecore\_con\_ssl\_server\_upgrade@{ecore\_con\_ssl\_server\_upgrade}!Ecore Connection Server Functions@{Ecore Connection Server Functions}}
\doxysubsubsection{\texorpdfstring{ecore\_con\_ssl\_server\_upgrade()}{ecore\_con\_ssl\_server\_upgrade()}}
{\footnotesize\ttfamily ECORE\+\_\+\+CON\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ecore\+\_\+con\+\_\+ssl\+\_\+server\+\_\+upgrade (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Ecore__Con__Server__Group_ga80f90f9716013d6104624c2e606f8915}{Ecore\+\_\+\+Con\+\_\+\+Server}} $\ast$}]{svr,  }\item[{Ecore\+\_\+\+Con\+\_\+\+Type}]{ssl\+\_\+type }\end{DoxyParamCaption})}



Upgrades a connection to a specified level of encryption. 

Use this function to begin an SSL handshake on a connection (STARTTLS or similar). Once the upgrade has been completed, an ECORE\+\_\+\+CON\+\_\+\+EVENT\+\_\+\+SERVER\+\_\+\+UPGRADE event will be emitted. The connection should be treated as disconnected until the next event. 
\begin{DoxyParams}{Parameters}
{\em svr} & The server object. \\
\hline
{\em ssl\+\_\+type} & The SSL connection type (ONLY). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+FALSE} if the connection cannot be upgraded, otherwise {\ttfamily EINA\+\_\+\+TRUE}. 
\end{DoxyReturn}
\begin{DoxyNote}{Note}
This function is NEVER to be used on a server object created with ecore\+\_\+con\+\_\+server\+\_\+add. 
\end{DoxyNote}
\begin{DoxyWarning}{Warning}
Setting a wrong value for {\ttfamily ssl\+\_\+type} WILL mess up your program. 
\end{DoxyWarning}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


References \mbox{\hyperlink{group__Ecore__Animator__Group_ga2981cf0a663650e0457d18a7ba18a6ad}{ecore\+\_\+animator\+\_\+frametime\+\_\+get()}}, \mbox{\hyperlink{group__Ecore__Con__Server__Group_gac1768fae815fb830a2df13ef08a2e5ae}{ecore\+\_\+con\+\_\+server\+\_\+flush()}}, \mbox{\hyperlink{group__Ecore__Time__Group_ga98f2439b5d3e7114a75bfe2f0c22c4e9}{ecore\+\_\+time\+\_\+get()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gae7cf7b1d66fa9022242e09fd53c06bb2}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+FALSE\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1dbe0d7e3c6b10f4bd49a2a132d73269}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

