\hypertarget{classXrlTestPeerTarget}{
\section{XrlTestPeerTarget Class Reference}
\label{classXrlTestPeerTarget}\index{XrlTestPeerTarget@{XrlTestPeerTarget}}
}
Inheritance diagram for XrlTestPeerTarget:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classXrlTestPeerTarget}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classXrlTestPeerTarget_ac6b5807a68473e2c4935ef65f5df259d}{
{\bfseries XrlTestPeerTarget} (\hyperlink{classXrlRouter}{XrlRouter} $\ast$r, \hyperlink{classTestPeer}{TestPeer} \&test\_\-peer, bool trace)}
\label{classXrlTestPeerTarget_ac6b5807a68473e2c4935ef65f5df259d}

\item 
\hypertarget{classXrlTestPeerTarget_a87742a352d77dc2db72af7d89795c115}{
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_a87742a352d77dc2db72af7d89795c115}{common\_\-0\_\-1\_\-get\_\-target\_\-name} (string \&name)}
\label{classXrlTestPeerTarget_a87742a352d77dc2db72af7d89795c115}

\begin{DoxyCompactList}\small\item\em Get name of \hyperlink{classXrl}{Xrl} Target. \item\end{DoxyCompactList}\item 
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_a6ce575695bba9dee80414fea1d103824}{common\_\-0\_\-1\_\-startup} ()
\begin{DoxyCompactList}\small\item\em Pure-\/virtual function that needs to be implemented to: \item\end{DoxyCompactList}\item 
\hypertarget{classXrlTestPeerTarget_af0e14ac0fe65b29e1b1a55a82b726b61}{
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_af0e14ac0fe65b29e1b1a55a82b726b61}{common\_\-0\_\-1\_\-get\_\-version} (string \&version)}
\label{classXrlTestPeerTarget_af0e14ac0fe65b29e1b1a55a82b726b61}

\begin{DoxyCompactList}\small\item\em Get version string from \hyperlink{classXrl}{Xrl} Target. \item\end{DoxyCompactList}\item 
\hypertarget{classXrlTestPeerTarget_a4c3ab615db839f833ed28e02bdefa2ae}{
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_a4c3ab615db839f833ed28e02bdefa2ae}{common\_\-0\_\-1\_\-get\_\-status} (uint32\_\-t \&status, string \&reason)}
\label{classXrlTestPeerTarget_a4c3ab615db839f833ed28e02bdefa2ae}

\begin{DoxyCompactList}\small\item\em Get status from \hyperlink{classXrl}{Xrl} Target. \item\end{DoxyCompactList}\item 
\hypertarget{classXrlTestPeerTarget_a5ee899cd599b788e9e7fdcf8b5024e2a}{
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_a5ee899cd599b788e9e7fdcf8b5024e2a}{common\_\-0\_\-1\_\-shutdown} ()}
\label{classXrlTestPeerTarget_a5ee899cd599b788e9e7fdcf8b5024e2a}

\begin{DoxyCompactList}\small\item\em shutdown target \item\end{DoxyCompactList}\item 
\hypertarget{classXrlTestPeerTarget_a6a718c59b579d635b397d499eb827cd6}{
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_a6a718c59b579d635b397d499eb827cd6}{test\_\-peer\_\-0\_\-1\_\-register} (const string \&coordinator, const uint32\_\-t \&genid)}
\label{classXrlTestPeerTarget_a6a718c59b579d635b397d499eb827cd6}

\begin{DoxyCompactList}\small\item\em Register for receiving packets and events. \item\end{DoxyCompactList}\item 
\hypertarget{classXrlTestPeerTarget_a6c6294407309b0e65b5bf1b912d510a0}{
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_a6c6294407309b0e65b5bf1b912d510a0}{test\_\-peer\_\-0\_\-1\_\-packetisation} (const string \&protocol)}
\label{classXrlTestPeerTarget_a6c6294407309b0e65b5bf1b912d510a0}

\begin{DoxyCompactList}\small\item\em Packetisation style. \item\end{DoxyCompactList}\item 
\hypertarget{classXrlTestPeerTarget_ab15989519c260f4fd1e48a76c1bc76ee}{
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_ab15989519c260f4fd1e48a76c1bc76ee}{test\_\-peer\_\-0\_\-1\_\-use\_\-4byte\_\-asnums} (const bool \&use)}
\label{classXrlTestPeerTarget_ab15989519c260f4fd1e48a76c1bc76ee}

\begin{DoxyCompactList}\small\item\em Use 4byte asnums. \item\end{DoxyCompactList}\item 
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_ae3ade0ca7d7eb2a1a792c282c4b35617}{test\_\-peer\_\-0\_\-1\_\-connect} (const string \&host, const uint32\_\-t \&port)
\begin{DoxyCompactList}\small\item\em Make a tcp connection to \hyperlink{protocolthe-p}{the} specified host and port. \item\end{DoxyCompactList}\item 
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_a517df82e226ed7efa401b22defedce86}{test\_\-peer\_\-0\_\-1\_\-listen} (const string \&address, const uint32\_\-t \&port)
\begin{DoxyCompactList}\small\item\em \hyperlink{classAccept}{Accept} connections from \hyperlink{protocolthe-p}{the} specified host on \hyperlink{protocolthe-p}{the} specified port. \item\end{DoxyCompactList}\item 
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_a02ed0215df54b460dd6488058220f8bf}{test\_\-peer\_\-0\_\-1\_\-bind} (const string \&address, const uint32\_\-t \&port)
\begin{DoxyCompactList}\small\item\em Bind \hyperlink{protocolthe-p}{the} port but don't perform \hyperlink{protocolthe-p}{the} listen or accept. \item\end{DoxyCompactList}\item 
\hypertarget{classXrlTestPeerTarget_a79058872781752d297cba6863504ba54}{
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_a79058872781752d297cba6863504ba54}{test\_\-peer\_\-0\_\-1\_\-send} (const vector$<$ uint8\_\-t $>$ \&data)}
\label{classXrlTestPeerTarget_a79058872781752d297cba6863504ba54}

\begin{DoxyCompactList}\small\item\em \hyperlink{structSend}{Send} data to \hyperlink{protocolthe-p}{the} peer. \item\end{DoxyCompactList}\item 
\hypertarget{classXrlTestPeerTarget_ab1cda2656e73d6bb266331d98955579a}{
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_ab1cda2656e73d6bb266331d98955579a}{test\_\-peer\_\-0\_\-1\_\-disconnect} ()}
\label{classXrlTestPeerTarget_ab1cda2656e73d6bb266331d98955579a}

\begin{DoxyCompactList}\small\item\em Disconnect from \hyperlink{protocolthe-p}{the} peer. \item\end{DoxyCompactList}\item 
\hypertarget{classXrlTestPeerTarget_a178ea46319e4ed6af70956ce2e67e843}{
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_a178ea46319e4ed6af70956ce2e67e843}{test\_\-peer\_\-0\_\-1\_\-reset} ()}
\label{classXrlTestPeerTarget_a178ea46319e4ed6af70956ce2e67e843}

\begin{DoxyCompactList}\small\item\em Reset \hyperlink{protocolthe-p}{the} peer. \item\end{DoxyCompactList}\item 
\hypertarget{classXrlTestPeerTarget_a5d9a31511cad61ada2d4b5e890164708}{
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classXrlTestPeerTarget_a5d9a31511cad61ada2d4b5e890164708}{test\_\-peer\_\-0\_\-1\_\-terminate} ()}
\label{classXrlTestPeerTarget_a5d9a31511cad61ada2d4b5e890164708}

\begin{DoxyCompactList}\small\item\em Terminate \hyperlink{protocolthe-p}{the} test peer process. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classXrlTestPeerTarget_a7c0717cefc1b7a95c3e142e132aad082}{
\hyperlink{classTestPeer}{TestPeer} \& {\bfseries \_\-test\_\-peer}}
\label{classXrlTestPeerTarget_a7c0717cefc1b7a95c3e142e132aad082}

\item 
\hypertarget{classXrlTestPeerTarget_a81b4bcae1713f5c6d7ad9ace9fd46af4}{
bool {\bfseries \_\-trace}}
\label{classXrlTestPeerTarget_a81b4bcae1713f5c6d7ad9ace9fd46af4}

\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{classXrlTestPeerTarget_a6ce575695bba9dee80414fea1d103824}{
\index{XrlTestPeerTarget@{XrlTestPeerTarget}!common\_\-0\_\-1\_\-startup@{common\_\-0\_\-1\_\-startup}}
\index{common\_\-0\_\-1\_\-startup@{common\_\-0\_\-1\_\-startup}!XrlTestPeerTarget@{XrlTestPeerTarget}}
\subsubsection[{common\_\-0\_\-1\_\-startup}]{\setlength{\rightskip}{0pt plus 5cm}{\bf XrlCmdError} XrlTestPeerTarget::common\_\-0\_\-1\_\-startup (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classXrlTestPeerTarget_a6ce575695bba9dee80414fea1d103824}


Pure-\/virtual function that needs to be implemented to: 

Request a startup of \hyperlink{classXrl}{Xrl} Target 

Implements \hyperlink{structXrlTestPeerTargetBase_a59a9c542d5de7bf0e57e07c02a77ee41}{XrlTestPeerTargetBase}.

\hypertarget{classXrlTestPeerTarget_a02ed0215df54b460dd6488058220f8bf}{
\index{XrlTestPeerTarget@{XrlTestPeerTarget}!test\_\-peer\_\-0\_\-1\_\-bind@{test\_\-peer\_\-0\_\-1\_\-bind}}
\index{test\_\-peer\_\-0\_\-1\_\-bind@{test\_\-peer\_\-0\_\-1\_\-bind}!XrlTestPeerTarget@{XrlTestPeerTarget}}
\subsubsection[{test\_\-peer\_\-0\_\-1\_\-bind}]{\setlength{\rightskip}{0pt plus 5cm}{\bf XrlCmdError} XrlTestPeerTarget::test\_\-peer\_\-0\_\-1\_\-bind (
\begin{DoxyParamCaption}
\item[{const string \&}]{address, }
\item[{const uint32\_\-t \&}]{port}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classXrlTestPeerTarget_a02ed0215df54b460dd6488058220f8bf}


Bind \hyperlink{protocolthe-p}{the} port but don't perform \hyperlink{protocolthe-p}{the} listen or accept. 


\begin{DoxyParams}{Parameters}
{\em address} & local address.\\
\hline
{\em port} & local port number. \\
\hline
\end{DoxyParams}


Implements \hyperlink{structXrlTestPeerTargetBase_ae4502b30d2767897dc78f15f04a143bf}{XrlTestPeerTargetBase}.

\hypertarget{classXrlTestPeerTarget_ae3ade0ca7d7eb2a1a792c282c4b35617}{
\index{XrlTestPeerTarget@{XrlTestPeerTarget}!test\_\-peer\_\-0\_\-1\_\-connect@{test\_\-peer\_\-0\_\-1\_\-connect}}
\index{test\_\-peer\_\-0\_\-1\_\-connect@{test\_\-peer\_\-0\_\-1\_\-connect}!XrlTestPeerTarget@{XrlTestPeerTarget}}
\subsubsection[{test\_\-peer\_\-0\_\-1\_\-connect}]{\setlength{\rightskip}{0pt plus 5cm}{\bf XrlCmdError} XrlTestPeerTarget::test\_\-peer\_\-0\_\-1\_\-connect (
\begin{DoxyParamCaption}
\item[{const string \&}]{host, }
\item[{const uint32\_\-t \&}]{port}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classXrlTestPeerTarget_ae3ade0ca7d7eb2a1a792c282c4b35617}


Make a tcp connection to \hyperlink{protocolthe-p}{the} specified host and port. 


\begin{DoxyParams}{Parameters}
{\em host} & name.\\
\hline
{\em port} & number. \\
\hline
\end{DoxyParams}


Implements \hyperlink{structXrlTestPeerTargetBase_a2a2b57bed19dfec872df1202f41a071e}{XrlTestPeerTargetBase}.

\hypertarget{classXrlTestPeerTarget_a517df82e226ed7efa401b22defedce86}{
\index{XrlTestPeerTarget@{XrlTestPeerTarget}!test\_\-peer\_\-0\_\-1\_\-listen@{test\_\-peer\_\-0\_\-1\_\-listen}}
\index{test\_\-peer\_\-0\_\-1\_\-listen@{test\_\-peer\_\-0\_\-1\_\-listen}!XrlTestPeerTarget@{XrlTestPeerTarget}}
\subsubsection[{test\_\-peer\_\-0\_\-1\_\-listen}]{\setlength{\rightskip}{0pt plus 5cm}{\bf XrlCmdError} XrlTestPeerTarget::test\_\-peer\_\-0\_\-1\_\-listen (
\begin{DoxyParamCaption}
\item[{const string \&}]{address, }
\item[{const uint32\_\-t \&}]{port}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classXrlTestPeerTarget_a517df82e226ed7efa401b22defedce86}


\hyperlink{classAccept}{Accept} connections from \hyperlink{protocolthe-p}{the} specified host on \hyperlink{protocolthe-p}{the} specified port. 


\begin{DoxyParams}{Parameters}
{\em host} & name.\\
\hline
{\em port} & number. \\
\hline
\end{DoxyParams}


Implements \hyperlink{structXrlTestPeerTargetBase_a4077cba12d498f39761bece646ea08fe}{XrlTestPeerTargetBase}.



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