\hypertarget{classFinderTcpListenerBase}{
\section{FinderTcpListenerBase Class Reference}
\label{classFinderTcpListenerBase}\index{FinderTcpListenerBase@{FinderTcpListenerBase}}
}
Inheritance diagram for FinderTcpListenerBase:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classFinderTcpListenerBase}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classFinderTcpListenerBase_a8deb95af060fedb89eeb7f9722e71a35}{
typedef vector$<$ \hyperlink{classIPv4}{IPv4} $>$ {\bfseries AddrList}}
\label{classFinderTcpListenerBase_a8deb95af060fedb89eeb7f9722e71a35}

\item 
\hypertarget{classFinderTcpListenerBase_ad605083b3d7a4c768d0a4d98d64dde91}{
typedef vector$<$ \hyperlink{classIPNet}{IPv4Net} $>$ {\bfseries NetList}}
\label{classFinderTcpListenerBase_ad605083b3d7a4c768d0a4d98d64dde91}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classFinderTcpListenerBase_a03a286a0e4f6cd11372b6a523bbed724}{
{\bfseries FinderTcpListenerBase} (\hyperlink{classEventLoop}{EventLoop} \&e, \hyperlink{classIPv4}{IPv4} iface, uint16\_\-t port, bool en=true)  throw (InvalidAddress, InvalidPort)}
\label{classFinderTcpListenerBase_a03a286a0e4f6cd11372b6a523bbed724}

\item 
virtual bool \hyperlink{classFinderTcpListenerBase_a17dc7b4ef7ccc8968c214f963bf5f7cb}{connection\_\-event} (\hyperlink{classXorpFd}{XorpFd} fd)=0
\begin{DoxyCompactList}\small\item\em Method called when a connection is accepted and matches permitted access conditions. \item\end{DoxyCompactList}\item 
\hypertarget{classFinderTcpListenerBase_a7326d677d79a08e3d446e480dc60348b}{
bool \hyperlink{classFinderTcpListenerBase_a7326d677d79a08e3d446e480dc60348b}{enabled} () const }
\label{classFinderTcpListenerBase_a7326d677d79a08e3d446e480dc60348b}

\begin{DoxyCompactList}\small\item\em Determine whether listener is enabled. \item\end{DoxyCompactList}\item 
\hypertarget{classFinderTcpListenerBase_a36cadca78aa82ec902b38e7ac6ae5792}{
void \hyperlink{classFinderTcpListenerBase_a36cadca78aa82ec902b38e7ac6ae5792}{set\_\-enabled} (bool en)}
\label{classFinderTcpListenerBase_a36cadca78aa82ec902b38e7ac6ae5792}

\begin{DoxyCompactList}\small\item\em Control whether listener is enabled. \item\end{DoxyCompactList}\item 
\hypertarget{classFinderTcpListenerBase_a9e15f590692300b7e564c9f1da09b05d}{
\hyperlink{classIPv4}{IPv4} \hyperlink{classFinderTcpListenerBase_a9e15f590692300b7e564c9f1da09b05d}{address} () const }
\label{classFinderTcpListenerBase_a9e15f590692300b7e564c9f1da09b05d}

\begin{DoxyCompactList}\small\item\em Get interface address listener is operating on. \item\end{DoxyCompactList}\item 
\hypertarget{classFinderTcpListenerBase_a01c51ed0097e1901389ad6776a723a60}{
uint16\_\-t \hyperlink{classFinderTcpListenerBase_a01c51ed0097e1901389ad6776a723a60}{port} () const }
\label{classFinderTcpListenerBase_a01c51ed0097e1901389ad6776a723a60}

\begin{DoxyCompactList}\small\item\em Get port listener is bound to. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classFinderTcpListenerBase_a063a80cf7f61713125a0aae54f913ef9}{
void \hyperlink{classFinderTcpListenerBase_a063a80cf7f61713125a0aae54f913ef9}{connect\_\-hook} (\hyperlink{classXorpFd}{XorpFd} fd, IoEventType type)}
\label{classFinderTcpListenerBase_a063a80cf7f61713125a0aae54f913ef9}

\begin{DoxyCompactList}\small\item\em Accepts connection, checks source address, and then calls \hyperlink{classFinderTcpListenerBase_a17dc7b4ef7ccc8968c214f963bf5f7cb}{connection\_\-event()} if source is valid. \item\end{DoxyCompactList}\item 
\hypertarget{classFinderTcpListenerBase_ad94e76a39090078a79f72aace5ab2681}{
\hyperlink{classEventLoop}{EventLoop} \& {\bfseries eventloop} () const }
\label{classFinderTcpListenerBase_ad94e76a39090078a79f72aace5ab2681}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classFinderTcpListenerBase_abc2e0bae5f5d2d2ea22c0092b168700e}{
\hyperlink{classEventLoop}{EventLoop} \& {\bfseries \_\-e}}
\label{classFinderTcpListenerBase_abc2e0bae5f5d2d2ea22c0092b168700e}

\item 
\hypertarget{classFinderTcpListenerBase_addef5cbf588607e2a83e90a08ec5ca32}{
\hyperlink{classXorpFd}{XorpFd} {\bfseries \_\-lsock}}
\label{classFinderTcpListenerBase_addef5cbf588607e2a83e90a08ec5ca32}

\item 
\hypertarget{classFinderTcpListenerBase_a3ffe752b48baf1f27325536e362112b2}{
bool {\bfseries \_\-en}}
\label{classFinderTcpListenerBase_a3ffe752b48baf1f27325536e362112b2}

\item 
\hypertarget{classFinderTcpListenerBase_aa2c1fc0e69961085c79a65fc62ca5678}{
\hyperlink{classIPv4}{IPv4} {\bfseries \_\-addr}}
\label{classFinderTcpListenerBase_aa2c1fc0e69961085c79a65fc62ca5678}

\item 
\hypertarget{classFinderTcpListenerBase_abdc2920271cdcdbe478e789980373a64}{
uint16\_\-t {\bfseries \_\-port}}
\label{classFinderTcpListenerBase_abdc2920271cdcdbe478e789980373a64}

\item 
\hypertarget{classFinderTcpListenerBase_a4bade0d7e72af0e5b74e0f4dadc689ea}{
AddrList {\bfseries \_\-ok\_\-addrs}}
\label{classFinderTcpListenerBase_a4bade0d7e72af0e5b74e0f4dadc689ea}

\item 
\hypertarget{classFinderTcpListenerBase_ab82c40d15533365a284cabfddb60e810}{
NetList {\bfseries \_\-ok\_\-nets}}
\label{classFinderTcpListenerBase_ab82c40d15533365a284cabfddb60e810}

\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{classFinderTcpListenerBase_a17dc7b4ef7ccc8968c214f963bf5f7cb}{
\index{FinderTcpListenerBase@{FinderTcpListenerBase}!connection\_\-event@{connection\_\-event}}
\index{connection\_\-event@{connection\_\-event}!FinderTcpListenerBase@{FinderTcpListenerBase}}
\subsubsection[{connection\_\-event}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool FinderTcpListenerBase::connection\_\-event (
\begin{DoxyParamCaption}
\item[{{\bf XorpFd}}]{fd}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{classFinderTcpListenerBase_a17dc7b4ef7ccc8968c214f963bf5f7cb}


Method called when a connection is accepted and matches permitted access conditions. 


\begin{DoxyParams}{Parameters}
{\em fd} & file descriptor associated with new connection.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if instance agrees to take responsibility for file descriptor, false otherwise. 
\end{DoxyReturn}


Implemented in \hyperlink{classFinderTcpListener_a4062569a3dbdc731cffe21853a0063ff}{FinderTcpListener}, and \hyperlink{classDummyFinder_adb697582bac28b9e37a19dc76ab4ce4d}{DummyFinder}.



The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/libxipc/finder\_\-tcp.hh\item 
/home/greearb/git/xorp.ct.github/xorp/libxipc/finder\_\-tcp.cc\end{DoxyCompactItemize}
