\doxysection{Telnet Interface}
\label{group__telnet__interface}\index{Telnet Interface@{Telnet Interface}}
\doxysubsection*{Files}
\begin{DoxyCompactItemize}
\item 
file \textbf{ telnet\+\_\+interface.\+h}
\begin{DoxyCompactList}\small\item\em minimalistic telnet/network interface it might turn into a wire interface \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ telnet\+\_\+connection}
\begin{DoxyCompactList}\small\item\em A telnet connection. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \textbf{ telnet\+\_\+init\+\_\+default} (void $\ast$tall\+\_\+ctx, void $\ast$priv, int default\+\_\+port)
\begin{DoxyCompactList}\small\item\em Initializes telnet based VTY interface using the configured bind addr/port. \end{DoxyCompactList}\item 
int \textbf{ telnet\+\_\+init} (void $\ast$tall\+\_\+ctx, void $\ast$priv, int port) \textbf{ OSMO\+\_\+\+DEPRECATED}(\char`\"{}This function ignores dynamic port configuration. Use \textbf{ telnet\+\_\+init\+\_\+default}() \textbf{ instead}\char`\"{})
\begin{DoxyCompactList}\small\item\em Initialize telnet based VTY interface listening to 127.\+0.\+0.\+1. \end{DoxyCompactList}\item 
int \textbf{ telnet\+\_\+init\+\_\+dynif} (void $\ast$tall\+\_\+ctx, void $\ast$priv, const char $\ast$ip, int port) \textbf{ OSMO\+\_\+\+DEPRECATED}(\char`\"{}This function ignores dynamic port configuration. Use \textbf{ telnet\+\_\+init\+\_\+default}() \textbf{ instead}\char`\"{})
\begin{DoxyCompactList}\small\item\em Initialize telnet based VTY interface. \end{DoxyCompactList}\item 
void \textbf{ telnet\+\_\+exit} (void)
\begin{DoxyCompactList}\small\item\em Close all telnet connections and release the telnet socket. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}


\doxysubsection{Function Documentation}
\mbox{\label{group__telnet__interface_gac0d9ac2f68450a5ba531738a47df5f21}} 
\index{Telnet Interface@{Telnet Interface}!telnet\_exit@{telnet\_exit}}
\index{telnet\_exit@{telnet\_exit}!Telnet Interface@{Telnet Interface}}
\doxysubsubsection{telnet\_exit()}
{\footnotesize\ttfamily void telnet\+\_\+exit (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Close all telnet connections and release the telnet socket. 



References \textbf{ entry}, \textbf{ osmo\+\_\+fd\+::fd}, \textbf{ telnet\+\_\+connection\+::fd}, \textbf{ llist\+\_\+for\+\_\+each\+\_\+entry\+\_\+safe}, \textbf{ osmo\+\_\+fd\+\_\+unregister()}, \textbf{ server\+\_\+socket}, \textbf{ tall\+\_\+telnet\+\_\+ctx}, and \textbf{ telnet\+\_\+close\+\_\+client()}.

\mbox{\label{group__telnet__interface_ga109c72d8938db94505e0a7520df3413a}} 
\index{Telnet Interface@{Telnet Interface}!telnet\_init@{telnet\_init}}
\index{telnet\_init@{telnet\_init}!Telnet Interface@{Telnet Interface}}
\doxysubsubsection{telnet\_init()}
{\footnotesize\ttfamily int telnet\+\_\+init (\begin{DoxyParamCaption}\item[{void $\ast$}]{tall\+\_\+ctx,  }\item[{void $\ast$}]{priv,  }\item[{int}]{port }\end{DoxyParamCaption})}



Initialize telnet based VTY interface listening to 127.\+0.\+0.\+1. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em tall\+\_\+ctx} & talloc context \\
\hline
\mbox{\texttt{ in}}  & {\em priv} & private data to be passed to callback \\
\hline
\mbox{\texttt{ in}}  & {\em port} & TCP port number to bind to \\
\hline
\end{DoxyParams}
\begin{DoxyRefDesc}{Deprecated}
\item[\textbf{ Deprecated}]use \doxyref{telnet\+\_\+init\+\_\+default()}{p.}{group__telnet__interface_gabd573e02358278e2e9877621b6f64256} instead \end{DoxyRefDesc}


References \textbf{ \+\_\+telnet\+\_\+init\+\_\+dynif()}.

\mbox{\label{group__telnet__interface_gabd573e02358278e2e9877621b6f64256}} 
\index{Telnet Interface@{Telnet Interface}!telnet\_init\_default@{telnet\_init\_default}}
\index{telnet\_init\_default@{telnet\_init\_default}!Telnet Interface@{Telnet Interface}}
\doxysubsubsection{telnet\_init\_default()}
{\footnotesize\ttfamily int telnet\+\_\+init\+\_\+default (\begin{DoxyParamCaption}\item[{void $\ast$}]{tall\+\_\+ctx,  }\item[{void $\ast$}]{priv,  }\item[{int}]{default\+\_\+port }\end{DoxyParamCaption})}



Initializes telnet based VTY interface using the configured bind addr/port. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em tall\+\_\+ctx} & talloc context \\
\hline
\mbox{\texttt{ in}}  & {\em priv} & private data to be passed to callback \\
\hline
\mbox{\texttt{ in}}  & {\em default\+\_\+port} & TCP port number to bind to if not explicitly configured \\
\hline
\end{DoxyParams}


References \textbf{ \+\_\+telnet\+\_\+init\+\_\+dynif()}, \textbf{ vty\+\_\+get\+\_\+bind\+\_\+addr()}, and \textbf{ vty\+\_\+get\+\_\+bind\+\_\+port()}.

\mbox{\label{group__telnet__interface_gae5f799aa2f51ecb1dbeac82b2f3e532b}} 
\index{Telnet Interface@{Telnet Interface}!telnet\_init\_dynif@{telnet\_init\_dynif}}
\index{telnet\_init\_dynif@{telnet\_init\_dynif}!Telnet Interface@{Telnet Interface}}
\doxysubsubsection{telnet\_init\_dynif()}
{\footnotesize\ttfamily int telnet\+\_\+init\+\_\+dynif (\begin{DoxyParamCaption}\item[{void $\ast$}]{tall\+\_\+ctx,  }\item[{void $\ast$}]{priv,  }\item[{const char $\ast$}]{ip,  }\item[{int}]{port }\end{DoxyParamCaption})}



Initialize telnet based VTY interface. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em tall\+\_\+ctx} & talloc context \\
\hline
\mbox{\texttt{ in}}  & {\em priv} & private data to be passed to callback \\
\hline
\mbox{\texttt{ in}}  & {\em ip} & IP to listen to (\textquotesingle{}\+::1\textquotesingle{} for localhost, \textquotesingle{}\+::0\textquotesingle{} for all, ...) \\
\hline
\mbox{\texttt{ in}}  & {\em port} & TCP port number to bind to \\
\hline
\end{DoxyParams}
\begin{DoxyRefDesc}{Deprecated}
\item[\textbf{ Deprecated}]use \doxyref{telnet\+\_\+init\+\_\+default()}{p.}{group__telnet__interface_gabd573e02358278e2e9877621b6f64256} instead \end{DoxyRefDesc}


References \textbf{ \+\_\+telnet\+\_\+init\+\_\+dynif()}.

