\doxysection{transport.\+h}
\hypertarget{transport_8h_source}{}\label{transport_8h_source}\index{rtrlib/transport/transport.h@{rtrlib/transport/transport.h}}
\mbox{\hyperlink{transport_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*}}
\DoxyCodeLine{00002\ \textcolor{comment}{\ *\ This\ file\ is\ part\ of\ RTRlib.}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ This\ file\ is\ subject\ to\ the\ terms\ and\ conditions\ of\ the\ MIT\ license.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ See\ the\ file\ LICENSE\ in\ the\ top\ level\ directory\ for\ more\ details.}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ Website:\ http://rtrlib.realmv6.org/}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00009\ }
\DoxyCodeLine{00023\ \textcolor{preprocessor}{\#ifndef\ RTR\_TRANSPORT\_H}}
\DoxyCodeLine{00024\ \textcolor{preprocessor}{\#define\ RTR\_TRANSPORT\_H}}
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00026\ \textcolor{preprocessor}{\#include\ <time.h>}}
\DoxyCodeLine{00027\ }
\DoxyCodeLine{00031\ \textcolor{preprocessor}{\#define\ RTRLIB\_TRANSPORT\_CONNECT\_TIMEOUT\_DEFAULT\ 30}}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00036\ \textcolor{keyword}{enum}\ \mbox{\hyperlink{group__mod__transport__h_ga4493c1dcecd61a8f10a71912f29d2087}{tr\_rtvals}}\ \{}
\DoxyCodeLine{00038\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__mod__transport__h_gga4493c1dcecd61a8f10a71912f29d2087afbed3f5722747b105d734585aa0fcba2}{TR\_SUCCESS}}\ =\ 0,}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00041\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__mod__transport__h_gga4493c1dcecd61a8f10a71912f29d2087a073c7a28c0dd674b0635178112536a2f}{TR\_ERROR}}\ =\ -\/1,}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00044\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__mod__transport__h_gga4493c1dcecd61a8f10a71912f29d2087a9cb0eee91bb5e932bbe89c2f12daadb5}{TR\_WOULDBLOCK}}\ =\ -\/2,}
\DoxyCodeLine{00045\ }
\DoxyCodeLine{00047\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__mod__transport__h_gga4493c1dcecd61a8f10a71912f29d2087a15019d7ece9eed5882a70243bbdfc0d8}{TR\_INTR}}\ =\ -\/3,}
\DoxyCodeLine{00048\ }
\DoxyCodeLine{00050\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__mod__transport__h_gga4493c1dcecd61a8f10a71912f29d2087a347014cc5da178db6cc3970d6e160694}{TR\_CLOSED}}\ =\ -\/4}
\DoxyCodeLine{00051\ \};}
\DoxyCodeLine{00052\ }
\DoxyCodeLine{00053\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structtr__socket}{tr\_socket}};}
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00059\ \textcolor{keyword}{typedef}\ void\ (*\mbox{\hyperlink{group__mod__transport__h_gad2efbef8b157cd9484c688d6ef67d6b6}{tr\_close\_fp}})(\textcolor{keywordtype}{void}\ *\mbox{\hyperlink{structtr__socket_a28cb492a8d75a4aefb2b44728336f00d}{socket}});}
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00065\ \textcolor{keyword}{typedef}\ int\ (*\mbox{\hyperlink{group__mod__transport__h_ga615d56abf17d32924155fcf0ccc2664c}{tr\_open\_fp}})(\textcolor{keywordtype}{void}\ *\mbox{\hyperlink{structtr__socket_a28cb492a8d75a4aefb2b44728336f00d}{socket}});}
\DoxyCodeLine{00066\ }
\DoxyCodeLine{00072\ \textcolor{keyword}{typedef}\ void\ (*\mbox{\hyperlink{group__mod__transport__h_ga333a8d2d3a3dea54a36034c026d0a054}{tr\_free\_fp}})(\textcolor{keyword}{struct\ }\mbox{\hyperlink{structtr__socket}{tr\_socket}}\ *tr\_sock);}
\DoxyCodeLine{00073\ }
\DoxyCodeLine{00078\ \textcolor{keyword}{typedef}\ int\ (*\mbox{\hyperlink{group__mod__transport__h_ga257bfa5c831410f1034edaa9b79f303c}{tr\_recv\_fp}})(\textcolor{keyword}{const}\ \textcolor{keywordtype}{void}\ *\mbox{\hyperlink{structtr__socket_a28cb492a8d75a4aefb2b44728336f00d}{socket}},\ \textcolor{keywordtype}{void}\ *pdu,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{size\_t}\ \mbox{\hyperlink{rtr__pdus_8h_a96bbf959016e4411c9e6b9812a8be60a}{len}},\ \textcolor{keyword}{const}\ time\_t\ timeout);}
\DoxyCodeLine{00079\ }
\DoxyCodeLine{00084\ \textcolor{keyword}{typedef}\ int\ (*\mbox{\hyperlink{group__mod__transport__h_gadc6f1fbce8f7557edd50070069afc0c6}{tr\_send\_fp}})(\textcolor{keyword}{const}\ \textcolor{keywordtype}{void}\ *\mbox{\hyperlink{structtr__socket_a28cb492a8d75a4aefb2b44728336f00d}{socket}},\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{void}\ *pdu,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{size\_t}\ \mbox{\hyperlink{rtr__pdus_8h_a96bbf959016e4411c9e6b9812a8be60a}{len}},\ \textcolor{keyword}{const}\ time\_t\ timeout);}
\DoxyCodeLine{00085\ }
\DoxyCodeLine{00090\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *(*tr\_ident\_fp)(\textcolor{keywordtype}{void}\ *\mbox{\hyperlink{structtr__socket_a28cb492a8d75a4aefb2b44728336f00d}{socket}});}
\DoxyCodeLine{00091\ }
\DoxyCodeLine{00102\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structtr__socket}{tr\_socket}}\ \{}
\DoxyCodeLine{00103\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ *\mbox{\hyperlink{structtr__socket_a28cb492a8d75a4aefb2b44728336f00d}{socket}};}
\DoxyCodeLine{00104\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__mod__transport__h_ga615d56abf17d32924155fcf0ccc2664c}{tr\_open\_fp}}\ \mbox{\hyperlink{structtr__socket_aa05edb8e7dabd5cce1b1662337f07d2d}{open\_fp}};}
\DoxyCodeLine{00105\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__mod__transport__h_gad2efbef8b157cd9484c688d6ef67d6b6}{tr\_close\_fp}}\ \mbox{\hyperlink{structtr__socket_a9d0b1bee8cb3690ab354f59407ac366b}{close\_fp}};}
\DoxyCodeLine{00106\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__mod__transport__h_ga333a8d2d3a3dea54a36034c026d0a054}{tr\_free\_fp}}\ \mbox{\hyperlink{structtr__socket_abfab19af559ea8b5cf3aebf12e77b1ef}{free\_fp}};}
\DoxyCodeLine{00107\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__mod__transport__h_gadc6f1fbce8f7557edd50070069afc0c6}{tr\_send\_fp}}\ \mbox{\hyperlink{structtr__socket_a4ff4ccfe686280779f49ca4bcdc5479a}{send\_fp}};}
\DoxyCodeLine{00108\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__mod__transport__h_ga257bfa5c831410f1034edaa9b79f303c}{tr\_recv\_fp}}\ \mbox{\hyperlink{structtr__socket_a44c7206e52fa28577a6525aaeffd53d1}{recv\_fp}};}
\DoxyCodeLine{00109\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{group__mod__transport__h_ga02f9d37bf7e41a8990b74af6653cae6c}{tr\_ident\_fp}}\ \mbox{\hyperlink{structtr__socket_a7274e976e6b94ca3bf59d718ce542463}{ident\_fp}};}
\DoxyCodeLine{00110\ \};}
\DoxyCodeLine{00111\ }
\DoxyCodeLine{00112\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
