\hypertarget{classIoLinkReceiver}{
\section{IoLinkReceiver Class Reference}
\label{classIoLinkReceiver}\index{IoLinkReceiver@{IoLinkReceiver}}
}


A base class for I/O Link raw packets receiver.  




{\ttfamily \#include $<$io\_\-link.hh$>$}

Inheritance diagram for IoLinkReceiver:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classIoLinkReceiver}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classIoLinkReceiver_a8da71f79b2063c87f59f427a37b7f314}{
\hyperlink{classIoLinkReceiver_a8da71f79b2063c87f59f427a37b7f314}{IoLinkReceiver} ()}
\label{classIoLinkReceiver_a8da71f79b2063c87f59f427a37b7f314}

\begin{DoxyCompactList}\small\item\em Default constructor. \item\end{DoxyCompactList}\item 
\hypertarget{classIoLinkReceiver_a92fdcaa4226960970930cd282e729065}{
virtual \hyperlink{classIoLinkReceiver_a92fdcaa4226960970930cd282e729065}{$\sim$IoLinkReceiver} ()}
\label{classIoLinkReceiver_a92fdcaa4226960970930cd282e729065}

\begin{DoxyCompactList}\small\item\em Virtual destructor. \item\end{DoxyCompactList}\item 
virtual void \hyperlink{classIoLinkReceiver_a09726325e033ebbce466008048406744}{recv\_\-packet} (const \hyperlink{classMac}{Mac} \&src\_\-address, const \hyperlink{classMac}{Mac} \&dst\_\-address, uint16\_\-t ether\_\-type, const vector$<$ uint8\_\-t $>$ \&payload)=0
\begin{DoxyCompactList}\small\item\em Received a link-\/level packet. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A base class for I/O Link raw packets receiver. The real receiver must inherit from this class and register with \hyperlink{protocolthe-p}{the} corresponding \hyperlink{classIoLink}{IoLink} entity to receive \hyperlink{protocolthe-p}{the} link raw packets. \begin{DoxySeeAlso}{See also}
\hyperlink{classIoLink}{IoLink}. 
\end{DoxySeeAlso}


\subsection{Member Function Documentation}
\hypertarget{classIoLinkReceiver_a09726325e033ebbce466008048406744}{
\index{IoLinkReceiver@{IoLinkReceiver}!recv\_\-packet@{recv\_\-packet}}
\index{recv\_\-packet@{recv\_\-packet}!IoLinkReceiver@{IoLinkReceiver}}
\subsubsection[{recv\_\-packet}]{\setlength{\rightskip}{0pt plus 5cm}virtual void IoLinkReceiver::recv\_\-packet (
\begin{DoxyParamCaption}
\item[{const {\bf Mac} \&}]{src\_\-address, }
\item[{const {\bf Mac} \&}]{dst\_\-address, }
\item[{uint16\_\-t}]{ether\_\-type, }
\item[{const vector$<$ uint8\_\-t $>$ \&}]{payload}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{classIoLinkReceiver_a09726325e033ebbce466008048406744}


Received a link-\/level packet. 


\begin{DoxyParams}{Parameters}
{\em src\_\-address} & \hyperlink{protocolthe-p}{the} MAC source address. \\
\hline
{\em dst\_\-address} & \hyperlink{protocolthe-p}{the} MAC destination address. \\
\hline
{\em ether\_\-type} & \hyperlink{protocolthe-p}{the} EtherType protocol number. \\
\hline
{\em packet} & \hyperlink{protocolthe-p}{the} payload, everything after \hyperlink{protocolthe-p}{the} MAC header. \\
\hline
\end{DoxyParams}


Implemented in \hyperlink{classIoLinkComm_af1d445806a5e18d651accc8a08bd269d}{IoLinkComm}.



The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/fea/io\_\-link.hh\end{DoxyCompactItemize}
