\doxysection{stats\+\_\+tcp.\+h}
\label{stats__tcp_8h_source}\index{include/osmocom/core/stats\_tcp.h@{include/osmocom/core/stats\_tcp.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{2 }
\DoxyCodeLine{3 \textcolor{preprocessor}{\#define TCP\_STATS\_DEFAULT\_INTERVAL 0    }\textcolor{comment}{/* secs */}\textcolor{preprocessor}{}}
\DoxyCodeLine{4 \textcolor{preprocessor}{\#define TCP\_STATS\_DEFAULT\_BATCH\_SIZE 5  }\textcolor{comment}{/* sockets per interval */}\textcolor{preprocessor}{}}
\DoxyCodeLine{5 }
\DoxyCodeLine{6 \textcolor{keyword}{struct }osmo\_tcp\_stats\_config \{}
\DoxyCodeLine{7         \textcolor{comment}{/* poll interval in seconds, use osmo\_stats\_tcp\_set\_interval() to manipulate this value */}}
\DoxyCodeLine{8         \textcolor{keywordtype}{int} interval;}
\DoxyCodeLine{9         \textcolor{comment}{/* specify how many sockets are processed when the interval timer expires */}}
\DoxyCodeLine{10         \textcolor{keywordtype}{int} batch\_size;}
\DoxyCodeLine{11 \};}
\DoxyCodeLine{12 \textcolor{keyword}{extern} \textcolor{keyword}{struct }osmo\_tcp\_stats\_config *osmo\_tcp\_stats\_config;}
\DoxyCodeLine{13 }
\DoxyCodeLine{14 \textcolor{keywordtype}{int} osmo\_stats\_tcp\_osmo\_fd\_register(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_fd *fd, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *name);}
\DoxyCodeLine{15 \textcolor{keywordtype}{int} osmo\_stats\_tcp\_osmo\_fd\_unregister(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_fd *fd);}
\DoxyCodeLine{16 \textcolor{keywordtype}{int} osmo\_stats\_tcp\_set\_interval(\textcolor{keywordtype}{int} interval);}

\end{DoxyCode}
