\hypertarget{group__Ecore__Con__Group}{}\section{Ecore\+\_\+\+Con -\/ Connection functions}
\label{group__Ecore__Con__Group}\index{Ecore\+\_\+\+Con -\/ Connection functions@{Ecore\+\_\+\+Con -\/ Connection functions}}


The Ecore Connection Library ( {\ttfamily Ecore\+\_\+\+Con} ) provides simple mechanisms for communications between programs using reliable sockets.  


\subsection*{Modules}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Ecore__Con__Events__Group}{Ecore Connection Events Functions}
\begin{DoxyCompactList}\small\item\em The Ecore Con events can be categorized into Server side events and Client side events. \end{DoxyCompactList}\item 
\hyperlink{group__Ecore__Con__Buffer}{Ecore Connection Buffering}
\begin{DoxyCompactList}\small\item\em As Ecore\+\_\+\+Con works on an event driven design, as data arrives, events will be produced containing the data that arrived. \end{DoxyCompactList}\item 
\hyperlink{group__Ecore__Con__Lib__Group}{Ecore Connection Library Functions}
\begin{DoxyCompactList}\small\item\em Utility functions that set up and shut down the Ecore Connection library. \end{DoxyCompactList}\item 
\hyperlink{group__Ecore__Con__SSL__Group}{Ecore Connection S\+S\+L Functions}
\begin{DoxyCompactList}\small\item\em Functions that operate on Ecore connection objects pertaining to S\+S\+L. \end{DoxyCompactList}\item 
\hyperlink{group__Ecore__Con__Socks__Group}{Ecore Connection S\+O\+C\+K\+S functions}
\item 
\hyperlink{group__Ecore__Con__Server__Group}{Ecore Connection Server Functions}
\begin{DoxyCompactList}\small\item\em This group of functions is applied to an Ecore\+\_\+\+Con\+\_\+\+Server object. \end{DoxyCompactList}\item 
\hyperlink{group__Ecore__Con__Client__Group}{Ecore Connection Client Functions}
\begin{DoxyCompactList}\small\item\em Functions to communicate with and/or set options on a client. \end{DoxyCompactList}\item 
\hyperlink{group__Ecore__Con__Url__Group}{Ecore U\+R\+L Connection Functions}
\begin{DoxyCompactList}\small\item\em Utility functions that set up, use and shut down the Ecore U\+R\+L Connection library. \end{DoxyCompactList}\item 
\hyperlink{group__Ecore__Con__Eet__Group}{Eet connection functions}
\begin{DoxyCompactList}\small\item\em The Ecore Connection Eet library ( {\ttfamily Ecore\+\_\+\+Con\+\_\+\+Eet}) adds {\ttfamily Eet} data serialization features to Ecore Connection objects. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
The Ecore Connection Library ( {\ttfamily Ecore\+\_\+\+Con} ) provides simple mechanisms for communications between programs using reliable sockets. 

It saves the programmer from having to worry about file descriptors and waiting for incoming connections.

There are two main objects in the {\ttfamily Ecore\+\_\+\+Con} library\+: the {\ttfamily Ecore\+\_\+\+Con\+\_\+\+Server} and the {\ttfamily Ecore\+\_\+\+Con\+\_\+\+Client}.

The {\ttfamily Ecore\+\_\+\+Con\+\_\+\+Server} represents a server that can be connected to. It is used regardless of whether the program is acting as a server or client itself.

To create a listening server call {\ttfamily \hyperlink{group__Ecore__Con__Server__Group_gaf450c4039d5e61d4f7a58d7b67efc1e8}{ecore\+\_\+con\+\_\+server\+\_\+add()}}, optionally using an E\+C\+O\+R\+E\+\_\+\+C\+O\+N\+\_\+\+U\+S\+E\+\_\+$\ast$ encryption type O\+R\textquotesingle{}ed with the type for encryption.

To connect to a server, call {\ttfamily \hyperlink{group__Ecore__Con__Server__Group_gae3d7391f7da5e0f748d7b6804d010b2f}{ecore\+\_\+con\+\_\+server\+\_\+connect()}}. Data can then be sent to the server using the {\ttfamily \hyperlink{group__Ecore__Con__Server__Group_gadf16abc2d4fc16a8b65709eab2cd8337}{ecore\+\_\+con\+\_\+server\+\_\+send()}}.

Functions are described in the following groupings\+: \begin{DoxyItemize}
\item \hyperlink{group__Ecore__Con__Lib__Group}{Ecore Connection Library Functions} \item \hyperlink{group__Ecore__Con__Server__Group}{Ecore Connection Server Functions} \item \hyperlink{group__Ecore__Con__Client__Group}{Ecore Connection Client Functions} \item \hyperlink{group__Ecore__Con__Url__Group}{Ecore U\+R\+L Connection Functions}\end{DoxyItemize}
Events are described in \hyperlink{group__Ecore__Con__Events__Group}{Ecore Connection Events Functions}. 