\doxysection{datagram.\+h}
\label{datagram_8h_source}\index{include/osmocom/netif/datagram.h@{include/osmocom/netif/datagram.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef \_OSMO\_DGRAM\_H\_}}
\DoxyCodeLine{2 \textcolor{preprocessor}{\#define \_OSMO\_DGRAM\_H\_}}
\DoxyCodeLine{3 }
\DoxyCodeLine{17 \textcolor{keyword}{struct }osmo\_dgram\_tx;}
\DoxyCodeLine{18 }
\DoxyCodeLine{19 \textcolor{keyword}{struct }osmo\_dgram\_tx *osmo\_dgram\_tx\_create(\textcolor{keywordtype}{void} *ctx);}
\DoxyCodeLine{20 \textcolor{keywordtype}{void} osmo\_dgram\_tx\_destroy(\textcolor{keyword}{struct} osmo\_dgram\_tx *conn);}
\DoxyCodeLine{21 }
\DoxyCodeLine{22 \textcolor{keywordtype}{void} osmo\_dgram\_tx\_set\_addr(\textcolor{keyword}{struct} osmo\_dgram\_tx *conn, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *addr);}
\DoxyCodeLine{23 \textcolor{keywordtype}{void} osmo\_dgram\_tx\_set\_port(\textcolor{keyword}{struct} osmo\_dgram\_tx *conn, uint16\_t port);}
\DoxyCodeLine{24 \textcolor{keywordtype}{void} osmo\_dgram\_tx\_set\_local\_addr(\textcolor{keyword}{struct} osmo\_dgram\_tx *conn, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *addr);}
\DoxyCodeLine{25 \textcolor{keywordtype}{void} osmo\_dgram\_tx\_set\_local\_port(\textcolor{keyword}{struct} osmo\_dgram\_tx *conn, uint16\_t port);}
\DoxyCodeLine{26 \textcolor{keywordtype}{void} osmo\_dgram\_tx\_set\_data(\textcolor{keyword}{struct} osmo\_dgram\_tx *conn, \textcolor{keywordtype}{void} *data);}
\DoxyCodeLine{27 }
\DoxyCodeLine{28 \textcolor{keywordtype}{int} osmo\_dgram\_tx\_open(\textcolor{keyword}{struct} osmo\_dgram\_tx *conn);}
\DoxyCodeLine{29 \textcolor{keywordtype}{void} osmo\_dgram\_tx\_close(\textcolor{keyword}{struct} osmo\_dgram\_tx *conn);}
\DoxyCodeLine{30 }
\DoxyCodeLine{31 \textcolor{keywordtype}{void} osmo\_dgram\_tx\_send(\textcolor{keyword}{struct} osmo\_dgram\_tx *conn, \textcolor{keyword}{struct} msgb *msg);}
\DoxyCodeLine{32 }
\DoxyCodeLine{33 \textcolor{keyword}{struct }osmo\_dgram\_rx;}
\DoxyCodeLine{34 }
\DoxyCodeLine{35 \textcolor{keyword}{struct }osmo\_dgram\_rx *osmo\_dgram\_rx\_create(\textcolor{keywordtype}{void} *ctx);}
\DoxyCodeLine{36 }
\DoxyCodeLine{37 \textcolor{keywordtype}{void} osmo\_dgram\_rx\_set\_addr(\textcolor{keyword}{struct} osmo\_dgram\_rx *conn, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *addr);}
\DoxyCodeLine{38 \textcolor{keywordtype}{void} osmo\_dgram\_rx\_set\_port(\textcolor{keyword}{struct} osmo\_dgram\_rx *conn, uint16\_t port);}
\DoxyCodeLine{39 \textcolor{keywordtype}{void} osmo\_dgram\_rx\_set\_read\_cb(\textcolor{keyword}{struct} osmo\_dgram\_rx *conn, \textcolor{keywordtype}{int} (*read\_cb)(\textcolor{keyword}{struct} osmo\_dgram\_rx *conn));}
\DoxyCodeLine{40 \textcolor{keywordtype}{void} osmo\_dgram\_rx\_destroy(\textcolor{keyword}{struct} osmo\_dgram\_rx *conn);}
\DoxyCodeLine{41 }
\DoxyCodeLine{42 \textcolor{keywordtype}{int} osmo\_dgram\_rx\_open(\textcolor{keyword}{struct} osmo\_dgram\_rx *conn);}
\DoxyCodeLine{43 \textcolor{keywordtype}{void} osmo\_dgram\_rx\_close(\textcolor{keyword}{struct} osmo\_dgram\_rx *conn);}
\DoxyCodeLine{44 }
\DoxyCodeLine{45 \textcolor{keywordtype}{int} osmo\_dgram\_rx\_recv(\textcolor{keyword}{struct} osmo\_dgram\_rx *conn, \textcolor{keyword}{struct} msgb *msg);}
\DoxyCodeLine{46 }
\DoxyCodeLine{47 \textcolor{keyword}{struct }osmo\_dgram;}
\DoxyCodeLine{48 }
\DoxyCodeLine{49 \textcolor{keyword}{struct }osmo\_dgram *osmo\_dgram\_create(\textcolor{keywordtype}{void} *ctx);}
\DoxyCodeLine{50 \textcolor{keywordtype}{void} osmo\_dgram\_destroy(\textcolor{keyword}{struct} osmo\_dgram *conn);}
\DoxyCodeLine{51 }
\DoxyCodeLine{52 \textcolor{keywordtype}{int} osmo\_dgram\_open(\textcolor{keyword}{struct} osmo\_dgram *conn);}
\DoxyCodeLine{53 \textcolor{keywordtype}{void} osmo\_dgram\_close(\textcolor{keyword}{struct} osmo\_dgram *conn);}
\DoxyCodeLine{54 }
\DoxyCodeLine{55 \textcolor{keywordtype}{void} osmo\_dgram\_set\_local\_addr(\textcolor{keyword}{struct} osmo\_dgram *conn, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *addr);}
\DoxyCodeLine{56 \textcolor{keywordtype}{void} osmo\_dgram\_set\_remote\_addr(\textcolor{keyword}{struct} osmo\_dgram *conn, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *addr);}
\DoxyCodeLine{57 \textcolor{keywordtype}{void} osmo\_dgram\_set\_local\_port(\textcolor{keyword}{struct} osmo\_dgram *conn, uint16\_t port);}
\DoxyCodeLine{58 \textcolor{keywordtype}{void} osmo\_dgram\_set\_remote\_port(\textcolor{keyword}{struct} osmo\_dgram *conn, uint16\_t port);}
\DoxyCodeLine{59 \textcolor{keywordtype}{void} osmo\_dgram\_set\_read\_cb(\textcolor{keyword}{struct} osmo\_dgram *conn, \textcolor{keywordtype}{int} (*read\_cb)(\textcolor{keyword}{struct} osmo\_dgram *conn));}
\DoxyCodeLine{60 \textcolor{keywordtype}{void} osmo\_dgram\_set\_data(\textcolor{keyword}{struct} osmo\_dgram *conn, \textcolor{keywordtype}{void} *data);}
\DoxyCodeLine{61 \textcolor{keywordtype}{void} *osmo\_dgram\_get\_data(\textcolor{keyword}{struct} osmo\_dgram *conn);}
\DoxyCodeLine{62 }
\DoxyCodeLine{63 \textcolor{keywordtype}{void} osmo\_dgram\_send(\textcolor{keyword}{struct} osmo\_dgram *conn, \textcolor{keyword}{struct} msgb *msg);}
\DoxyCodeLine{64 \textcolor{keywordtype}{int} osmo\_dgram\_recv(\textcolor{keyword}{struct} osmo\_dgram *conn, \textcolor{keyword}{struct} msgb *msg);}
\DoxyCodeLine{65 }
\DoxyCodeLine{66 \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
