\hypertarget{classSimpleTransmit}{
\section{SimpleTransmit$<$ A $>$ Class Template Reference}
\label{classSimpleTransmit}\index{SimpleTransmit@{SimpleTransmit}}
}


A transmit object that sends fixed data.  




{\ttfamily \#include $<$transmit.hh$>$}

Inheritance diagram for SimpleTransmit$<$ A $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classSimpleTransmit}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSimpleTransmit_a6174f1cfbd88f76f563b7f2f5db5df71}{
{\bfseries SimpleTransmit} (vector$<$ uint8\_\-t $>$ \&pkt, A dst, A src)}
\label{classSimpleTransmit_a6174f1cfbd88f76f563b7f2f5db5df71}

\item 
bool \hyperlink{classSimpleTransmit_a502a59cdb4f29712ec92a1ac84796a5d}{valid} ()
\begin{DoxyCompactList}\small\item\em Is this object still valid? \item\end{DoxyCompactList}\item 
bool \hyperlink{classSimpleTransmit_aebcc15495a3caea7c65eee2580280121}{multiple} ()
\begin{DoxyCompactList}\small\item\em A transmit object may be able to generate multiple packets; not just one. \item\end{DoxyCompactList}\item 
\hyperlink{classTransmit}{Transmit}$<$ A $>$::\hyperlink{classref__ptr}{TransmitRef} \hyperlink{classSimpleTransmit_addd336741c921b2d03551e0fc3b2f6d6}{clone} ()
\begin{DoxyCompactList}\small\item\em Make a copy of this object. \item\end{DoxyCompactList}\item 
uint8\_\-t $\ast$ \hyperlink{classSimpleTransmit_af1f03d72b1bbc7080d8e9dd19cf2967f}{generate} (size\_\-t \&len)
\begin{DoxyCompactList}\small\item\em Generate a packet for transmission. \item\end{DoxyCompactList}\item 
A \hyperlink{classSimpleTransmit_ab81b8cc6f906b9b7e9c09792ec611c4e}{destination} ()
\item 
A \hyperlink{classSimpleTransmit_a2f36daf642c39f4f596f6a059b7cc33c}{source} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSimpleTransmit_a9256ea051a9e68bad86c8423c2e6cb1b}{
vector$<$ uint8\_\-t $>$ {\bfseries \_\-pkt}}
\label{classSimpleTransmit_a9256ea051a9e68bad86c8423c2e6cb1b}

\item 
\hypertarget{classSimpleTransmit_a9c1f2bab53448ac63e3388036c96cceb}{
A {\bfseries \_\-dst}}
\label{classSimpleTransmit_a9c1f2bab53448ac63e3388036c96cceb}

\item 
\hypertarget{classSimpleTransmit_a1451b13150f3a2729e95cf522dd67e99}{
A {\bfseries \_\-src}}
\label{classSimpleTransmit_a1451b13150f3a2729e95cf522dd67e99}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename A$>$ class SimpleTransmit$<$ A $>$}

A transmit object that sends fixed data. 

\subsection{Member Function Documentation}
\hypertarget{classSimpleTransmit_addd336741c921b2d03551e0fc3b2f6d6}{
\index{SimpleTransmit@{SimpleTransmit}!clone@{clone}}
\index{clone@{clone}!SimpleTransmit@{SimpleTransmit}}
\subsubsection[{clone}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ {\bf Transmit}$<$A$>$::{\bf TransmitRef} {\bf SimpleTransmit}$<$ A $>$::clone (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classSimpleTransmit_addd336741c921b2d03551e0fc3b2f6d6}


Make a copy of this object. 

If \hyperlink{protocolthe-p}{the} same data is being sent to multiple locations, provide a mechanism to make a copy for each location. 

Implements \hyperlink{classTransmit_a4f381b2fda62b098d37f2ae8c7fb3d92}{Transmit$<$ A $>$}.

\hypertarget{classSimpleTransmit_ab81b8cc6f906b9b7e9c09792ec611c4e}{
\index{SimpleTransmit@{SimpleTransmit}!destination@{destination}}
\index{destination@{destination}!SimpleTransmit@{SimpleTransmit}}
\subsubsection[{destination}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ A {\bf SimpleTransmit}$<$ A $>$::destination (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classSimpleTransmit_ab81b8cc6f906b9b7e9c09792ec611c4e}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} destination address of this packet. 
\end{DoxyReturn}


Implements \hyperlink{classTransmit_a0426bab289b841b84f100421c40bfa4b}{Transmit$<$ A $>$}.

\hypertarget{classSimpleTransmit_af1f03d72b1bbc7080d8e9dd19cf2967f}{
\index{SimpleTransmit@{SimpleTransmit}!generate@{generate}}
\index{generate@{generate}!SimpleTransmit@{SimpleTransmit}}
\subsubsection[{generate}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ uint8\_\-t$\ast$ {\bf SimpleTransmit}$<$ A $>$::generate (
\begin{DoxyParamCaption}
\item[{size\_\-t \&}]{len}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classSimpleTransmit_af1f03d72b1bbc7080d8e9dd19cf2967f}


Generate a packet for transmission. 


\begin{DoxyParams}{Parameters}
{\em len} & length of \hyperlink{protocolthe-p}{the} encoded packet.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer that must be delete'd. 
\end{DoxyReturn}


Implements \hyperlink{classTransmit_ac7a839ae7d62273ba77b1dad9facf2b7}{Transmit$<$ A $>$}.

\hypertarget{classSimpleTransmit_aebcc15495a3caea7c65eee2580280121}{
\index{SimpleTransmit@{SimpleTransmit}!multiple@{multiple}}
\index{multiple@{multiple}!SimpleTransmit@{SimpleTransmit}}
\subsubsection[{multiple}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ bool {\bf SimpleTransmit}$<$ A $>$::multiple (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classSimpleTransmit_aebcc15495a3caea7c65eee2580280121}


A transmit object may be able to generate multiple packets; not just one. 

\begin{DoxyReturn}{Returns}
True if this object can be invoked multiple times? 
\end{DoxyReturn}


Implements \hyperlink{classTransmit_a3e618a42f0cfabdb1211bd1890bea7d7}{Transmit$<$ A $>$}.

\hypertarget{classSimpleTransmit_a2f36daf642c39f4f596f6a059b7cc33c}{
\index{SimpleTransmit@{SimpleTransmit}!source@{source}}
\index{source@{source}!SimpleTransmit@{SimpleTransmit}}
\subsubsection[{source}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ A {\bf SimpleTransmit}$<$ A $>$::source (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classSimpleTransmit_a2f36daf642c39f4f596f6a059b7cc33c}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} source address of this packet. 
\end{DoxyReturn}


Implements \hyperlink{classTransmit_ab039dbc280e374c515de7f3cbf75bbce}{Transmit$<$ A $>$}.

\hypertarget{classSimpleTransmit_a502a59cdb4f29712ec92a1ac84796a5d}{
\index{SimpleTransmit@{SimpleTransmit}!valid@{valid}}
\index{valid@{valid}!SimpleTransmit@{SimpleTransmit}}
\subsubsection[{valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A $>$ bool {\bf SimpleTransmit}$<$ A $>$::valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classSimpleTransmit_a502a59cdb4f29712ec92a1ac84796a5d}


Is this object still valid? 

\begin{DoxyReturn}{Returns}
True if this transmit object is still valid. 
\end{DoxyReturn}


Implements \hyperlink{classTransmit_af2b30ff556159a75cb1d8bb0b34349e1}{Transmit$<$ A $>$}.



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