\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{00001\ \textcolor{preprocessor}{\#ifndef\ \_OSMO\_DGRAM\_H\_}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ \_OSMO\_DGRAM\_H\_}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00017\ \textcolor{keyword}{struct\ }osmo\_dgram\_tx;}
\DoxyCodeLine{00018\ }
\DoxyCodeLine{00019\ \textcolor{keyword}{struct\ }osmo\_dgram\_tx\ *osmo\_dgram\_tx\_create(\textcolor{keywordtype}{void}\ *ctx);}
\DoxyCodeLine{00020\ \textcolor{keywordtype}{void}\ osmo\_dgram\_tx\_destroy(\textcolor{keyword}{struct}\ osmo\_dgram\_tx\ *conn);}
\DoxyCodeLine{00021\ }
\DoxyCodeLine{00022\ \textcolor{keywordtype}{void}\ osmo\_dgram\_tx\_set\_addr(\textcolor{keyword}{struct}\ osmo\_dgram\_tx\ *conn,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *addr);}
\DoxyCodeLine{00023\ \textcolor{keywordtype}{void}\ osmo\_dgram\_tx\_set\_port(\textcolor{keyword}{struct}\ osmo\_dgram\_tx\ *conn,\ uint16\_t\ port);}
\DoxyCodeLine{00024\ \textcolor{keywordtype}{void}\ osmo\_dgram\_tx\_set\_local\_addr(\textcolor{keyword}{struct}\ osmo\_dgram\_tx\ *conn,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *addr);}
\DoxyCodeLine{00025\ \textcolor{keywordtype}{void}\ osmo\_dgram\_tx\_set\_local\_port(\textcolor{keyword}{struct}\ osmo\_dgram\_tx\ *conn,\ uint16\_t\ port);}
\DoxyCodeLine{00026\ \textcolor{keywordtype}{void}\ osmo\_dgram\_tx\_set\_data(\textcolor{keyword}{struct}\ osmo\_dgram\_tx\ *conn,\ \textcolor{keywordtype}{void}\ *data);}
\DoxyCodeLine{00027\ }
\DoxyCodeLine{00028\ \textcolor{keywordtype}{int}\ osmo\_dgram\_tx\_open(\textcolor{keyword}{struct}\ osmo\_dgram\_tx\ *conn);}
\DoxyCodeLine{00029\ \textcolor{keywordtype}{void}\ osmo\_dgram\_tx\_close(\textcolor{keyword}{struct}\ osmo\_dgram\_tx\ *conn);}
\DoxyCodeLine{00030\ }
\DoxyCodeLine{00031\ \textcolor{keywordtype}{void}\ osmo\_dgram\_tx\_send(\textcolor{keyword}{struct}\ osmo\_dgram\_tx\ *conn,\ \textcolor{keyword}{struct}\ msgb\ *msg);}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \textcolor{keyword}{struct\ }osmo\_dgram\_rx;}
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00035\ \textcolor{keyword}{struct\ }osmo\_dgram\_rx\ *osmo\_dgram\_rx\_create(\textcolor{keywordtype}{void}\ *ctx);}
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00037\ \textcolor{keywordtype}{void}\ osmo\_dgram\_rx\_set\_addr(\textcolor{keyword}{struct}\ osmo\_dgram\_rx\ *conn,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *addr);}
\DoxyCodeLine{00038\ \textcolor{keywordtype}{void}\ osmo\_dgram\_rx\_set\_port(\textcolor{keyword}{struct}\ osmo\_dgram\_rx\ *conn,\ uint16\_t\ port);}
\DoxyCodeLine{00039\ \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{00040\ \textcolor{keywordtype}{void}\ osmo\_dgram\_rx\_destroy(\textcolor{keyword}{struct}\ osmo\_dgram\_rx\ *conn);}
\DoxyCodeLine{00041\ }
\DoxyCodeLine{00042\ \textcolor{keywordtype}{int}\ osmo\_dgram\_rx\_open(\textcolor{keyword}{struct}\ osmo\_dgram\_rx\ *conn);}
\DoxyCodeLine{00043\ \textcolor{keywordtype}{void}\ osmo\_dgram\_rx\_close(\textcolor{keyword}{struct}\ osmo\_dgram\_rx\ *conn);}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00045\ \textcolor{keywordtype}{int}\ osmo\_dgram\_rx\_recv(\textcolor{keyword}{struct}\ osmo\_dgram\_rx\ *conn,\ \textcolor{keyword}{struct}\ msgb\ *msg);}
\DoxyCodeLine{00046\ }
\DoxyCodeLine{00047\ \textcolor{keyword}{struct\ }osmo\_dgram;}
\DoxyCodeLine{00048\ }
\DoxyCodeLine{00049\ \textcolor{keyword}{struct\ }osmo\_dgram\ *osmo\_dgram\_create(\textcolor{keywordtype}{void}\ *ctx);}
\DoxyCodeLine{00050\ \textcolor{keywordtype}{void}\ osmo\_dgram\_destroy(\textcolor{keyword}{struct}\ osmo\_dgram\ *conn);}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00052\ \textcolor{keywordtype}{int}\ osmo\_dgram\_open(\textcolor{keyword}{struct}\ osmo\_dgram\ *conn);}
\DoxyCodeLine{00053\ \textcolor{keywordtype}{void}\ osmo\_dgram\_close(\textcolor{keyword}{struct}\ osmo\_dgram\ *conn);}
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00055\ \textcolor{keywordtype}{void}\ osmo\_dgram\_set\_local\_addr(\textcolor{keyword}{struct}\ osmo\_dgram\ *conn,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *addr);}
\DoxyCodeLine{00056\ \textcolor{keywordtype}{void}\ osmo\_dgram\_set\_remote\_addr(\textcolor{keyword}{struct}\ osmo\_dgram\ *conn,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *addr);}
\DoxyCodeLine{00057\ \textcolor{keywordtype}{void}\ osmo\_dgram\_set\_local\_port(\textcolor{keyword}{struct}\ osmo\_dgram\ *conn,\ uint16\_t\ port);}
\DoxyCodeLine{00058\ \textcolor{keywordtype}{void}\ osmo\_dgram\_set\_remote\_port(\textcolor{keyword}{struct}\ osmo\_dgram\ *conn,\ uint16\_t\ port);}
\DoxyCodeLine{00059\ \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{00060\ \textcolor{keywordtype}{void}\ osmo\_dgram\_set\_data(\textcolor{keyword}{struct}\ osmo\_dgram\ *conn,\ \textcolor{keywordtype}{void}\ *data);}
\DoxyCodeLine{00061\ \textcolor{keywordtype}{void}\ *osmo\_dgram\_get\_data(\textcolor{keyword}{struct}\ osmo\_dgram\ *conn);}
\DoxyCodeLine{00062\ }
\DoxyCodeLine{00063\ \textcolor{keywordtype}{void}\ osmo\_dgram\_send(\textcolor{keyword}{struct}\ osmo\_dgram\ *conn,\ \textcolor{keyword}{struct}\ msgb\ *msg);}
\DoxyCodeLine{00064\ \textcolor{keywordtype}{int}\ osmo\_dgram\_recv(\textcolor{keyword}{struct}\ osmo\_dgram\ *conn,\ \textcolor{keyword}{struct}\ msgb\ *msg);}
\DoxyCodeLine{00065\ }
\DoxyCodeLine{00066\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
