\doxysubsection{TCP transport socket}
\hypertarget{group__mod__tcp__transport__h}{}\label{group__mod__tcp__transport__h}\index{TCP transport socket@{TCP transport socket}}


An implementation of the TCP protocol for the RTR transport.  


\doxysubsubsubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structtr__tcp__config}{tr\+\_\+tcp\+\_\+config}}
\begin{DoxyCompactList}\small\item\em A \doxylink{structtr__tcp__config}{tr\+\_\+tcp\+\_\+config} struct holds configuration for a TCP connection. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{group__mod__tcp__transport__h_ga6335c26aa03290ba3524829574e472e0}{tr\+\_\+tcp\+\_\+init}} (const struct \mbox{\hyperlink{structtr__tcp__config}{tr\+\_\+tcp\+\_\+config}} \texorpdfstring{$\ast$}{*}config, struct \mbox{\hyperlink{structtr__socket}{tr\+\_\+socket}} \texorpdfstring{$\ast$}{*}socket)
\begin{DoxyCompactList}\small\item\em Initializes the \doxylink{structtr__socket}{tr\+\_\+socket} struct for a TCP connection. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsubsection{Detailed Description}
An implementation of the TCP protocol for the RTR transport. 

See \doxylink{group__mod__transport__h}{transport interface} for a list of supported operations. 

\doxysubsubsection{Function Documentation}
\Hypertarget{group__mod__tcp__transport__h_ga6335c26aa03290ba3524829574e472e0}\label{group__mod__tcp__transport__h_ga6335c26aa03290ba3524829574e472e0} 
\index{TCP transport socket@{TCP transport socket}!tr\_tcp\_init@{tr\_tcp\_init}}
\index{tr\_tcp\_init@{tr\_tcp\_init}!TCP transport socket@{TCP transport socket}}
\doxysubsubsubsection{\texorpdfstring{tr\_tcp\_init()}{tr\_tcp\_init()}}
{\footnotesize\ttfamily int tr\+\_\+tcp\+\_\+init (\begin{DoxyParamCaption}\item[{const struct \mbox{\hyperlink{structtr__tcp__config}{tr\+\_\+tcp\+\_\+config}} \texorpdfstring{$\ast$}{*}}]{config,  }\item[{struct \mbox{\hyperlink{structtr__socket}{tr\+\_\+socket}} \texorpdfstring{$\ast$}{*}}]{socket }\end{DoxyParamCaption})}



{\ttfamily \#include $<$\mbox{\hyperlink{tcp__transport_8h}{rtrlib/transport/tcp/tcp\+\_\+transport.\+h}}$>$}



Initializes the \doxylink{structtr__socket}{tr\+\_\+socket} struct for a TCP connection. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em config} & TCP configuration for the connection. \\
\hline
\mbox{\texttt{ out}}  & {\em socket} & Initialized transport socket. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
TR\+\_\+\+SUCCESS On success. 

TR\+\_\+\+ERROR On error. 
\end{DoxyReturn}
