\doxysection{tr\+\_\+tcp\+\_\+config Struct Reference}
\hypertarget{structtr__tcp__config}{}\label{structtr__tcp__config}\index{tr\_tcp\_config@{tr\_tcp\_config}}


A \doxylink{structtr__tcp__config}{tr\+\_\+tcp\+\_\+config} struct holds configuration for a TCP connection.  




{\ttfamily \#include $<$tcp\+\_\+transport.\+h$>$}

\doxysubsubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
char \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{structtr__tcp__config_a7cb93ee58dee3547efea7b7b0eb025e3}{host}}
\item 
char \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{structtr__tcp__config_aeaf235398cb077f88b7b4ea18519b7b0}{port}}
\item 
char \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{structtr__tcp__config_a0687a59f8c60d7add4057bb216af7a37}{bindaddr}}
\item 
void \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{structtr__tcp__config_a58d7b759bb09e062d52ee04528a4a7a4}{data}}
\item 
int(\texorpdfstring{$\ast$}{*} \mbox{\hyperlink{structtr__tcp__config_ade0ddf9e09961379743b2b756b09b838}{new\+\_\+socket}} )(void \texorpdfstring{$\ast$}{*}\mbox{\hyperlink{structtr__tcp__config_a58d7b759bb09e062d52ee04528a4a7a4}{data}})
\item 
unsigned int \mbox{\hyperlink{structtr__tcp__config_a553a318f8243737c7a19a7f09c135615}{connect\+\_\+timeout}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
A \doxylink{structtr__tcp__config}{tr\+\_\+tcp\+\_\+config} struct holds configuration for a TCP connection. 


\begin{DoxyParams}{Parameters}
{\em host} & Hostname or IP address to connect to. \\
\hline
{\em port} & Port to connect to. \\
\hline
{\em bindaddr} & Hostname or IP address to connect from. NULL for determination by OS. to use the source address of the system\textquotesingle{}s default route to the server \\
\hline
{\em data} & Information to pass to callback function in charge of retrieving socket \\
\hline
{\em \doxylink{structtr__tcp__config_ade0ddf9e09961379743b2b756b09b838}{new\+\_\+socket(void}} & \texorpdfstring{$\ast$}{*}opaque\+\_\+info) callback routine, that Pointer to the function that is called every time a new connection is made. The returned socket is expected to be ready for use (e.\+g. in state established), and must use a reliably stream-\/oriented transport. When \doxylink{structtr__tcp__config_ade0ddf9e09961379743b2b756b09b838}{new\+\_\+socket()} is used, host, port, and bindaddr are not used. \\
\hline
{\em connect\+\_\+timeout} & Time in seconds to wait for a successful connection. Defaults to \doxylink{group__mod__transport__h_gac27543eee07496666cd6ebf3487aec40}{RTRLIB\+\_\+\+TRANSPORT\+\_\+\+CONNECT\+\_\+\+TIMEOUT\+\_\+\+DEFAULT} \\
\hline
\end{DoxyParams}


\doxysubsection{Field Documentation}
\Hypertarget{structtr__tcp__config_a0687a59f8c60d7add4057bb216af7a37}\label{structtr__tcp__config_a0687a59f8c60d7add4057bb216af7a37} 
\index{tr\_tcp\_config@{tr\_tcp\_config}!bindaddr@{bindaddr}}
\index{bindaddr@{bindaddr}!tr\_tcp\_config@{tr\_tcp\_config}}
\doxysubsubsection{\texorpdfstring{bindaddr}{bindaddr}}
{\footnotesize\ttfamily char\texorpdfstring{$\ast$}{*} tr\+\_\+tcp\+\_\+config\+::bindaddr}

\Hypertarget{structtr__tcp__config_a553a318f8243737c7a19a7f09c135615}\label{structtr__tcp__config_a553a318f8243737c7a19a7f09c135615} 
\index{tr\_tcp\_config@{tr\_tcp\_config}!connect\_timeout@{connect\_timeout}}
\index{connect\_timeout@{connect\_timeout}!tr\_tcp\_config@{tr\_tcp\_config}}
\doxysubsubsection{\texorpdfstring{connect\_timeout}{connect\_timeout}}
{\footnotesize\ttfamily unsigned int tr\+\_\+tcp\+\_\+config\+::connect\+\_\+timeout}

\Hypertarget{structtr__tcp__config_a58d7b759bb09e062d52ee04528a4a7a4}\label{structtr__tcp__config_a58d7b759bb09e062d52ee04528a4a7a4} 
\index{tr\_tcp\_config@{tr\_tcp\_config}!data@{data}}
\index{data@{data}!tr\_tcp\_config@{tr\_tcp\_config}}
\doxysubsubsection{\texorpdfstring{data}{data}}
{\footnotesize\ttfamily void\texorpdfstring{$\ast$}{*} tr\+\_\+tcp\+\_\+config\+::data}

\Hypertarget{structtr__tcp__config_a7cb93ee58dee3547efea7b7b0eb025e3}\label{structtr__tcp__config_a7cb93ee58dee3547efea7b7b0eb025e3} 
\index{tr\_tcp\_config@{tr\_tcp\_config}!host@{host}}
\index{host@{host}!tr\_tcp\_config@{tr\_tcp\_config}}
\doxysubsubsection{\texorpdfstring{host}{host}}
{\footnotesize\ttfamily char\texorpdfstring{$\ast$}{*} tr\+\_\+tcp\+\_\+config\+::host}

\Hypertarget{structtr__tcp__config_ade0ddf9e09961379743b2b756b09b838}\label{structtr__tcp__config_ade0ddf9e09961379743b2b756b09b838} 
\index{tr\_tcp\_config@{tr\_tcp\_config}!new\_socket@{new\_socket}}
\index{new\_socket@{new\_socket}!tr\_tcp\_config@{tr\_tcp\_config}}
\doxysubsubsection{\texorpdfstring{new\_socket}{new\_socket}}
{\footnotesize\ttfamily int(\texorpdfstring{$\ast$}{*} tr\+\_\+tcp\+\_\+config\+::new\+\_\+socket) (void \texorpdfstring{$\ast$}{*}\mbox{\hyperlink{structtr__tcp__config_a58d7b759bb09e062d52ee04528a4a7a4}{data}})}

\Hypertarget{structtr__tcp__config_aeaf235398cb077f88b7b4ea18519b7b0}\label{structtr__tcp__config_aeaf235398cb077f88b7b4ea18519b7b0} 
\index{tr\_tcp\_config@{tr\_tcp\_config}!port@{port}}
\index{port@{port}!tr\_tcp\_config@{tr\_tcp\_config}}
\doxysubsubsection{\texorpdfstring{port}{port}}
{\footnotesize\ttfamily char\texorpdfstring{$\ast$}{*} tr\+\_\+tcp\+\_\+config\+::port}



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
rtrlib/transport/tcp/\mbox{\hyperlink{tcp__transport_8h}{tcp\+\_\+transport.\+h}}\end{DoxyCompactItemize}
