\doxysection{telnet\+\_\+interface.\+h}
\label{telnet__interface_8h_source}\index{include/osmocom/vty/telnet\_interface.h@{include/osmocom/vty/telnet\_interface.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{3 \textcolor{comment}{/*}}
\DoxyCodeLine{4 \textcolor{comment}{ * (C) 2009 by Holger Hans Peter Freyther <zecke@selfish.org>}}
\DoxyCodeLine{5 \textcolor{comment}{ * All Rights Reserved}}
\DoxyCodeLine{6 \textcolor{comment}{ *}}
\DoxyCodeLine{7 \textcolor{comment}{ * This program is free software; you can redistribute it and/or modify}}
\DoxyCodeLine{8 \textcolor{comment}{ * it under the terms of the GNU General Public License as published by}}
\DoxyCodeLine{9 \textcolor{comment}{ * the Free Software Foundation; either version 2 of the License, or}}
\DoxyCodeLine{10 \textcolor{comment}{ * (at your option) any later version.}}
\DoxyCodeLine{11 \textcolor{comment}{ *}}
\DoxyCodeLine{12 \textcolor{comment}{ * This program is distributed in the hope that it will be useful,}}
\DoxyCodeLine{13 \textcolor{comment}{ * but WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{14 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the}}
\DoxyCodeLine{15 \textcolor{comment}{ * GNU General Public License for more details.}}
\DoxyCodeLine{16 \textcolor{comment}{ *}}
\DoxyCodeLine{17 \textcolor{comment}{ */}}
\DoxyCodeLine{18 }
\DoxyCodeLine{19 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{20 }
\DoxyCodeLine{21 \textcolor{preprocessor}{\#include <osmocom/core/defs.h>}}
\DoxyCodeLine{22 \textcolor{preprocessor}{\#include <osmocom/core/logging.h>}}
\DoxyCodeLine{23 \textcolor{preprocessor}{\#include <osmocom/core/select.h>}}
\DoxyCodeLine{24 }
\DoxyCodeLine{25 \textcolor{preprocessor}{\#include <osmocom/vty/vty.h>}}
\DoxyCodeLine{26 }
\DoxyCodeLine{32 \textcolor{keyword}{struct }telnet\_connection \{}
\DoxyCodeLine{34         \textcolor{keyword}{struct }llist\_head entry;}
\DoxyCodeLine{36         \textcolor{keywordtype}{void} *priv;}
\DoxyCodeLine{38         \textcolor{keyword}{struct }osmo\_fd fd;}
\DoxyCodeLine{40         \textcolor{keyword}{struct }vty *vty;}
\DoxyCodeLine{42         \textcolor{keyword}{struct }log\_target *dbg;}
\DoxyCodeLine{43 \};}
\DoxyCodeLine{44 }
\DoxyCodeLine{45 \textcolor{keywordtype}{int} telnet\_init\_default(\textcolor{keywordtype}{void} *tall\_ctx, \textcolor{keywordtype}{void} *priv, \textcolor{keywordtype}{int} default\_port);}
\DoxyCodeLine{46 }
\DoxyCodeLine{47 \textcolor{keywordtype}{int} telnet\_init(\textcolor{keywordtype}{void} *tall\_ctx, \textcolor{keywordtype}{void} *priv, \textcolor{keywordtype}{int} port)}
\DoxyCodeLine{48         OSMO\_DEPRECATED(\textcolor{stringliteral}{"{}This function ignores dynamic port configuration. Use telnet\_init\_default() instead"{}});}
\DoxyCodeLine{49 \textcolor{keywordtype}{int} telnet\_init\_dynif(\textcolor{keywordtype}{void} *tall\_ctx, \textcolor{keywordtype}{void} *priv, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *ip, \textcolor{keywordtype}{int} port)}
\DoxyCodeLine{50         OSMO\_DEPRECATED(\textcolor{stringliteral}{"{}This function ignores dynamic port configuration. Use telnet\_init\_default() instead"{}});}
\DoxyCodeLine{51 }
\DoxyCodeLine{52 \textcolor{keywordtype}{void} telnet\_exit(\textcolor{keywordtype}{void});}
\DoxyCodeLine{53 }

\end{DoxyCode}
