\doxysection{ctrl\+\_\+connection Struct Reference}
\label{structctrl__connection}\index{ctrl\_connection@{ctrl\_connection}}


Represents a single ctrl connection.  




{\ttfamily \#include $<$control\+\_\+cmd.\+h$>$}

\doxysubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ llist\+\_\+head} \textbf{ list\+\_\+entry}
\item 
struct \textbf{ osmo\+\_\+wqueue} \textbf{ write\+\_\+queue}
\begin{DoxyCompactList}\small\item\em The queue for sending data back. \end{DoxyCompactList}\item 
struct \textbf{ msgb} $\ast$ \textbf{ pending\+\_\+msg}
\begin{DoxyCompactList}\small\item\em Buffer for partial input data. \end{DoxyCompactList}\item 
void($\ast$ \textbf{ closed\+\_\+cb} )(struct \textbf{ ctrl\+\_\+connection} $\ast$conn)
\begin{DoxyCompactList}\small\item\em Callback if the connection was closed. \end{DoxyCompactList}\item 
struct \textbf{ llist\+\_\+head} \textbf{ cmds}
\begin{DoxyCompactList}\small\item\em Pending commands for this connection. \end{DoxyCompactList}\item 
struct \textbf{ llist\+\_\+head} \textbf{ def\+\_\+cmds}
\begin{DoxyCompactList}\small\item\em Pending deferred command responses for this connection. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Represents a single ctrl connection. 

\doxysubsection{Field Documentation}
\mbox{\label{structctrl__connection_a15919ffbf19d2a79a93993a96f6e21f0}} 
\index{ctrl\_connection@{ctrl\_connection}!closed\_cb@{closed\_cb}}
\index{closed\_cb@{closed\_cb}!ctrl\_connection@{ctrl\_connection}}
\doxysubsubsection{closed\_cb}
{\footnotesize\ttfamily void($\ast$ ctrl\+\_\+connection\+::closed\+\_\+cb) (struct \textbf{ ctrl\+\_\+connection} $\ast$conn)}



Callback if the connection was closed. 



Referenced by \textbf{ control\+\_\+close\+\_\+conn()}.

\mbox{\label{structctrl__connection_aebe6d7f7547f16364455865865037937}} 
\index{ctrl\_connection@{ctrl\_connection}!cmds@{cmds}}
\index{cmds@{cmds}!ctrl\_connection@{ctrl\_connection}}
\doxysubsubsection{cmds}
{\footnotesize\ttfamily struct \textbf{ llist\+\_\+head} ctrl\+\_\+connection\+::cmds}



Pending commands for this connection. 



Referenced by \textbf{ osmo\+\_\+ctrl\+\_\+conn\+\_\+alloc()}.

\mbox{\label{structctrl__connection_aac52a01bfc2f1c7989b53f8ac32148d3}} 
\index{ctrl\_connection@{ctrl\_connection}!def\_cmds@{def\_cmds}}
\index{def\_cmds@{def\_cmds}!ctrl\_connection@{ctrl\_connection}}
\doxysubsubsection{def\_cmds}
{\footnotesize\ttfamily struct \textbf{ llist\+\_\+head} ctrl\+\_\+connection\+::def\+\_\+cmds}



Pending deferred command responses for this connection. 



Referenced by \textbf{ control\+\_\+close\+\_\+conn()}, \textbf{ ctrl\+\_\+cmd\+\_\+def\+\_\+make()}, and \textbf{ osmo\+\_\+ctrl\+\_\+conn\+\_\+alloc()}.

\mbox{\label{structctrl__connection_a38af9e10f2a47d50295996d0c9de71a5}} 
\index{ctrl\_connection@{ctrl\_connection}!list\_entry@{list\_entry}}
\index{list\_entry@{list\_entry}!ctrl\_connection@{ctrl\_connection}}
\doxysubsubsection{list\_entry}
{\footnotesize\ttfamily struct \textbf{ llist\+\_\+head} ctrl\+\_\+connection\+::list\+\_\+entry}



Referenced by \textbf{ control\+\_\+close\+\_\+conn()}, \textbf{ ctrl\+\_\+cmd\+\_\+send\+\_\+to\+\_\+all()}, and \textbf{ listen\+\_\+fd\+\_\+cb()}.

\mbox{\label{structctrl__connection_a8576663940810ca0327e2a1888aa7bf1}} 
\index{ctrl\_connection@{ctrl\_connection}!pending\_msg@{pending\_msg}}
\index{pending\_msg@{pending\_msg}!ctrl\_connection@{ctrl\_connection}}
\doxysubsubsection{pending\_msg}
{\footnotesize\ttfamily struct \textbf{ msgb}$\ast$ ctrl\+\_\+connection\+::pending\+\_\+msg}



Buffer for partial input data. 



Referenced by \textbf{ control\+\_\+close\+\_\+conn()}, and \textbf{ handle\+\_\+control\+\_\+read()}.

\mbox{\label{structctrl__connection_a39c0cbb6e0f6e96f76c28f64d2c92481}} 
\index{ctrl\_connection@{ctrl\_connection}!write\_queue@{write\_queue}}
\index{write\_queue@{write\_queue}!ctrl\_connection@{ctrl\_connection}}
\doxysubsubsection{write\_queue}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+wqueue} ctrl\+\_\+connection\+::write\+\_\+queue}



The queue for sending data back. 



Referenced by \textbf{ control\+\_\+close\+\_\+conn()}, \textbf{ control\+\_\+write\+\_\+cb()}, \textbf{ ctrl\+\_\+cmd\+\_\+send()}, \textbf{ ctrl\+\_\+cmd\+\_\+send2()}, \textbf{ ctrl\+\_\+handle\+\_\+msg()}, \textbf{ listen\+\_\+fd\+\_\+cb()}, and \textbf{ osmo\+\_\+ctrl\+\_\+conn\+\_\+alloc()}.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
include/osmocom/ctrl/\textbf{ control\+\_\+cmd.\+h}\end{DoxyCompactItemize}
