\hypertarget{classTestSocket4TCPServer}{
\section{TestSocket4TCPServer Class Reference}
\label{classTestSocket4TCPServer}\index{TestSocket4TCPServer@{TestSocket4TCPServer}}
}
Inheritance diagram for TestSocket4TCPServer:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classTestSocket4TCPServer}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTestSocket4TCPServer_a095bc5a6268c8fc737453242384bed48}{
{\bfseries TestSocket4TCPServer} (\hyperlink{classEventLoop}{EventLoop} \&e, const string \&fea\_\-target\_\-name, \hyperlink{classIPv4}{IPv4} finder\_\-host, uint16\_\-t finder\_\-port)}
\label{classTestSocket4TCPServer_a095bc5a6268c8fc737453242384bed48}

\item 
\hypertarget{classTestSocket4TCPServer_a16ada76cafae8119dbe2250ab1bc9ecb}{
bool {\bfseries server\_\-closed} () const }
\label{classTestSocket4TCPServer_a16ada76cafae8119dbe2250ab1bc9ecb}

\item 
\hypertarget{classTestSocket4TCPServer_a9466bfe394f8e0e1a4bf505d0a9ddce1}{
bool {\bfseries client\_\-closed} () const }
\label{classTestSocket4TCPServer_a9466bfe394f8e0e1a4bf505d0a9ddce1}

\item 
bool \hyperlink{classTestSocket4TCPServer_aa2d92e8eece242b3af0a6466a7034c29}{bind} (\hyperlink{classIPv4}{IPv4} addr, uint16\_\-t port)
\begin{DoxyCompactList}\small\item\em Bind to interface and port. \item\end{DoxyCompactList}\item 
bool \hyperlink{classTestSocket4TCPServer_a5ba157451db171fe0a402ff76712644d}{listen} (uint32\_\-t backlog)
\begin{DoxyCompactList}\small\item\em Listen on \hyperlink{protocolthe-p}{the} server socket. \item\end{DoxyCompactList}\item 
bool \hyperlink{classTestSocket4TCPServer_a22f88017619b746a838ec764dbec6004}{close\_\-server} ()
\begin{DoxyCompactList}\small\item\em Request closure of \hyperlink{protocolthe-p}{the} server socket. \item\end{DoxyCompactList}\item 
bool \hyperlink{classTestSocket4TCPServer_ae4daea363b28282252968689f5b18e5e}{close\_\-client} ()
\begin{DoxyCompactList}\small\item\em Request closure of \hyperlink{protocolthe-p}{the} client socket (request a disconnect of \hyperlink{protocolthe-p}{the} client). \item\end{DoxyCompactList}\item 
bool \hyperlink{classTestSocket4TCPServer_a9772fb6740c357361c2cd193aa768902}{send\_\-data} (uint32\_\-t bytes)
\begin{DoxyCompactList}\small\item\em \hyperlink{structSend}{Send} data to \hyperlink{protocolthe-p}{the} connected client, through \hyperlink{protocolthe-p}{the} client socket. \item\end{DoxyCompactList}\item 
void \hyperlink{classTestSocket4TCPServer_a3d9955c4cd39383d6f5bdb265398573d}{start\_\-sending} (uint32\_\-t bytes, uint32\_\-t ipg\_\-ms)
\begin{DoxyCompactList}\small\item\em Start sending packets. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTestSocket4TCPServer_a96ba2f938b585773615fe07b4be6404a}{
void {\bfseries bind\_\-cb} (const \hyperlink{classXrlError}{XrlError} \&e, const string $\ast$psockid)}
\label{classTestSocket4TCPServer_a96ba2f938b585773615fe07b4be6404a}

\item 
\hypertarget{classTestSocket4TCPServer_af1d2151a166051581e946c232531e9ae}{
void {\bfseries listen\_\-cb} (const \hyperlink{classXrlError}{XrlError} \&e)}
\label{classTestSocket4TCPServer_af1d2151a166051581e946c232531e9ae}

\item 
\hypertarget{classTestSocket4TCPServer_a1cb24f5e5e3da3f845a2d0033ce183e0}{
void {\bfseries close\_\-server\_\-cb} (const \hyperlink{classXrlError}{XrlError} \&e)}
\label{classTestSocket4TCPServer_a1cb24f5e5e3da3f845a2d0033ce183e0}

\item 
\hypertarget{classTestSocket4TCPServer_afb907e089dbf19ba66a155cedc3604d1}{
void {\bfseries close\_\-client\_\-cb} (const \hyperlink{classXrlError}{XrlError} \&e)}
\label{classTestSocket4TCPServer_afb907e089dbf19ba66a155cedc3604d1}

\item 
\hypertarget{classTestSocket4TCPServer_ab7ee44572e652243d2f38d6930b3f705}{
void {\bfseries send\_\-data\_\-cb} (const \hyperlink{classXrlError}{XrlError} \&e)}
\label{classTestSocket4TCPServer_ab7ee44572e652243d2f38d6930b3f705}

\item 
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classTestSocket4TCPServer_a3a15aead7ab951b493158d689f4b0b32}{socket4\_\-user\_\-0\_\-1\_\-recv\_\-event} (const string \&sockid, const string \&if\_\-name, const string \&vif\_\-name, const \hyperlink{classIPv4}{IPv4} \&src\_\-host, const uint32\_\-t \&src\_\-port, const vector$<$ uint8\_\-t $>$ \&data)
\begin{DoxyCompactList}\small\item\em Pure-\/virtual function that needs to be implemented to: \item\end{DoxyCompactList}\item 
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classTestSocket4TCPServer_a9074a0fe1b0c3f6485f2974595fea26d}{socket4\_\-user\_\-0\_\-1\_\-inbound\_\-connect\_\-event} (const string \&sockid, const \hyperlink{classIPv4}{IPv4} \&src\_\-host, const uint32\_\-t \&src\_\-port, const string \&new\_\-sockid, bool \&accept)
\begin{DoxyCompactList}\small\item\em Pure-\/virtual function that needs to be implemented to: \item\end{DoxyCompactList}\item 
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classTestSocket4TCPServer_a796bf38fe34f19b5d6dd9d8375428bd6}{socket4\_\-user\_\-0\_\-1\_\-outgoing\_\-connect\_\-event} (const string \&sockid)
\begin{DoxyCompactList}\small\item\em Pure-\/virtual function that needs to be implemented to: \item\end{DoxyCompactList}\item 
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classTestSocket4TCPServer_ad7c562b410b0e6f1fedf861568195673}{socket4\_\-user\_\-0\_\-1\_\-error\_\-event} (const string \&sockid, const string \&error, const bool \&fatal)
\begin{DoxyCompactList}\small\item\em Pure-\/virtual function that needs to be implemented to: \item\end{DoxyCompactList}\item 
\hyperlink{structXrlCmdError}{XrlCmdError} \hyperlink{classTestSocket4TCPServer_a467a7be495eff7b53fa0ecec28b02da2}{socket4\_\-user\_\-0\_\-1\_\-disconnect\_\-event} (const string \&sockid)
\begin{DoxyCompactList}\small\item\em Pure-\/virtual function that needs to be implemented to: \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTestSocket4TCPServer_a3399ee5ca084c29a146c5da90bfeccde}{
string {\bfseries \_\-server\_\-sockid}}
\label{classTestSocket4TCPServer_a3399ee5ca084c29a146c5da90bfeccde}

\item 
\hypertarget{classTestSocket4TCPServer_a790785b10c7cdc503f50bf486c0eb04d}{
string {\bfseries \_\-client\_\-sockid}}
\label{classTestSocket4TCPServer_a790785b10c7cdc503f50bf486c0eb04d}

\item 
\hypertarget{classTestSocket4TCPServer_a3da313400686532627bfd4e7d4aea983}{
bool {\bfseries \_\-server\_\-closed}}
\label{classTestSocket4TCPServer_a3da313400686532627bfd4e7d4aea983}

\item 
\hypertarget{classTestSocket4TCPServer_a2c0f8fda489da36016bce9bfe5cbbf4d}{
bool {\bfseries \_\-client\_\-closed}}
\label{classTestSocket4TCPServer_a2c0f8fda489da36016bce9bfe5cbbf4d}

\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{classTestSocket4TCPServer_aa2d92e8eece242b3af0a6466a7034c29}{
\index{TestSocket4TCPServer@{TestSocket4TCPServer}!bind@{bind}}
\index{bind@{bind}!TestSocket4TCPServer@{TestSocket4TCPServer}}
\subsubsection[{bind}]{\setlength{\rightskip}{0pt plus 5cm}bool TestSocket4TCPServer::bind (
\begin{DoxyParamCaption}
\item[{{\bf IPv4}}]{addr, }
\item[{uint16\_\-t}]{port}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTestSocket4TCPServer_aa2d92e8eece242b3af0a6466a7034c29}


Bind to interface and port. 

This is an asynchronous request. If \hyperlink{protocolthe-p}{the} request is successfully queued for dispatch then true is returned.

Subsequently, if \hyperlink{protocolthe-p}{the} request is successful \_\-server\_\-sockid is set to a valid socket identifier, and \_\-server\_\-closed set to false. If unsuccessful \hyperlink{protocolthe-p}{the} number of xrl errors is bumped by one. \hypertarget{classTestSocket4TCPServer_ae4daea363b28282252968689f5b18e5e}{
\index{TestSocket4TCPServer@{TestSocket4TCPServer}!close\_\-client@{close\_\-client}}
\index{close\_\-client@{close\_\-client}!TestSocket4TCPServer@{TestSocket4TCPServer}}
\subsubsection[{close\_\-client}]{\setlength{\rightskip}{0pt plus 5cm}bool TestSocket4TCPServer::close\_\-client (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTestSocket4TCPServer_ae4daea363b28282252968689f5b18e5e}


Request closure of \hyperlink{protocolthe-p}{the} client socket (request a disconnect of \hyperlink{protocolthe-p}{the} client). 

This is an asychronous request. If \hyperlink{protocolthe-p}{the} request is successfully queued for dispatch then true is returned.

On success \_\-client\_\-sockid is cleared. On failure \hyperlink{protocolthe-p}{the} number xrl errors is bumped by one. \hypertarget{classTestSocket4TCPServer_a22f88017619b746a838ec764dbec6004}{
\index{TestSocket4TCPServer@{TestSocket4TCPServer}!close\_\-server@{close\_\-server}}
\index{close\_\-server@{close\_\-server}!TestSocket4TCPServer@{TestSocket4TCPServer}}
\subsubsection[{close\_\-server}]{\setlength{\rightskip}{0pt plus 5cm}bool TestSocket4TCPServer::close\_\-server (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTestSocket4TCPServer_a22f88017619b746a838ec764dbec6004}


Request closure of \hyperlink{protocolthe-p}{the} server socket. 

This is an asychronous request. If \hyperlink{protocolthe-p}{the} request is successfully queued for dispatch then true is returned.

On success \_\-server\_\-sockid is cleared. On failure \hyperlink{protocolthe-p}{the} number xrl errors is bumped by one. \hypertarget{classTestSocket4TCPServer_a5ba157451db171fe0a402ff76712644d}{
\index{TestSocket4TCPServer@{TestSocket4TCPServer}!listen@{listen}}
\index{listen@{listen}!TestSocket4TCPServer@{TestSocket4TCPServer}}
\subsubsection[{listen}]{\setlength{\rightskip}{0pt plus 5cm}bool TestSocket4TCPServer::listen (
\begin{DoxyParamCaption}
\item[{uint32\_\-t}]{backlog}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTestSocket4TCPServer_a5ba157451db171fe0a402ff76712644d}


Listen on \hyperlink{protocolthe-p}{the} server socket. 

This is an asynchronous request. If \hyperlink{protocolthe-p}{the} request is successfully queued for dispatch then true is returned. \hypertarget{classTestSocket4TCPServer_a9772fb6740c357361c2cd193aa768902}{
\index{TestSocket4TCPServer@{TestSocket4TCPServer}!send\_\-data@{send\_\-data}}
\index{send\_\-data@{send\_\-data}!TestSocket4TCPServer@{TestSocket4TCPServer}}
\subsubsection[{send\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}bool TestSocket4TCPServer::send\_\-data (
\begin{DoxyParamCaption}
\item[{uint32\_\-t}]{bytes}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classTestSocket4TCPServer_a9772fb6740c357361c2cd193aa768902}


\hyperlink{structSend}{Send} data to \hyperlink{protocolthe-p}{the} connected client, through \hyperlink{protocolthe-p}{the} client socket. 

For implementation, see \hyperlink{classTestSocket4TCP_a305ca089a2d858b34a78e1bb1036f280}{TestSocket4TCP::send\_\-data}. 

Implements \hyperlink{classTestSocket4TCP}{TestSocket4TCP}.

\hypertarget{classTestSocket4TCPServer_a467a7be495eff7b53fa0ecec28b02da2}{
\index{TestSocket4TCPServer@{TestSocket4TCPServer}!socket4\_\-user\_\-0\_\-1\_\-disconnect\_\-event@{socket4\_\-user\_\-0\_\-1\_\-disconnect\_\-event}}
\index{socket4\_\-user\_\-0\_\-1\_\-disconnect\_\-event@{socket4\_\-user\_\-0\_\-1\_\-disconnect\_\-event}!TestSocket4TCPServer@{TestSocket4TCPServer}}
\subsubsection[{socket4\_\-user\_\-0\_\-1\_\-disconnect\_\-event}]{\setlength{\rightskip}{0pt plus 5cm}{\bf XrlCmdError} TestSocket4TCPServer::socket4\_\-user\_\-0\_\-1\_\-disconnect\_\-event (
\begin{DoxyParamCaption}
\item[{const string \&}]{sockid}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, protected, virtual\mbox{]}}}}
\label{classTestSocket4TCPServer_a467a7be495eff7b53fa0ecec28b02da2}


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

Method invoked by target implementing socket4/0.1 when \hyperlink{protocolthe-p}{the} peer has closed \hyperlink{protocolthe-p}{the} connection. It applies only to TCP sockets. Note that \hyperlink{protocolthe-p}{the} socket itself is left open and must be explicitly closed.


\begin{DoxyParams}{Parameters}
{\em sockid} & \hyperlink{protocolthe-p}{the} identifier associated with socket where \hyperlink{protocolthe-p}{the} event occurred. \\
\hline
\end{DoxyParams}


Implements \hyperlink{classTestSocket4TCP_a2c70f2d9e84bec869130f9f9433a400d}{TestSocket4TCP}.

\hypertarget{classTestSocket4TCPServer_ad7c562b410b0e6f1fedf861568195673}{
\index{TestSocket4TCPServer@{TestSocket4TCPServer}!socket4\_\-user\_\-0\_\-1\_\-error\_\-event@{socket4\_\-user\_\-0\_\-1\_\-error\_\-event}}
\index{socket4\_\-user\_\-0\_\-1\_\-error\_\-event@{socket4\_\-user\_\-0\_\-1\_\-error\_\-event}!TestSocket4TCPServer@{TestSocket4TCPServer}}
\subsubsection[{socket4\_\-user\_\-0\_\-1\_\-error\_\-event}]{\setlength{\rightskip}{0pt plus 5cm}{\bf XrlCmdError} TestSocket4TCPServer::socket4\_\-user\_\-0\_\-1\_\-error\_\-event (
\begin{DoxyParamCaption}
\item[{const string \&}]{sockid, }
\item[{const string \&}]{error, }
\item[{const bool \&}]{fatal}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, protected, virtual\mbox{]}}}}
\label{classTestSocket4TCPServer_ad7c562b410b0e6f1fedf861568195673}


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

Method invoked by target implementing socket4/0.1 when an error occurs.


\begin{DoxyParams}{Parameters}
{\em sockid} & \hyperlink{protocolthe-p}{the} identifier associated with socket where \hyperlink{protocolthe-p}{the} event occurred.\\
\hline
{\em error} & a textual description of \hyperlink{protocolthe-p}{the} error.\\
\hline
{\em fatal} & indication of whether socket is shutdown because of error. \\
\hline
\end{DoxyParams}


Implements \hyperlink{classTestSocket4TCP_a6a2c0add6108cadc2a777659c137a817}{TestSocket4TCP}.

\hypertarget{classTestSocket4TCPServer_a9074a0fe1b0c3f6485f2974595fea26d}{
\index{TestSocket4TCPServer@{TestSocket4TCPServer}!socket4\_\-user\_\-0\_\-1\_\-inbound\_\-connect\_\-event@{socket4\_\-user\_\-0\_\-1\_\-inbound\_\-connect\_\-event}}
\index{socket4\_\-user\_\-0\_\-1\_\-inbound\_\-connect\_\-event@{socket4\_\-user\_\-0\_\-1\_\-inbound\_\-connect\_\-event}!TestSocket4TCPServer@{TestSocket4TCPServer}}
\subsubsection[{socket4\_\-user\_\-0\_\-1\_\-inbound\_\-connect\_\-event}]{\setlength{\rightskip}{0pt plus 5cm}{\bf XrlCmdError} TestSocket4TCPServer::socket4\_\-user\_\-0\_\-1\_\-inbound\_\-connect\_\-event (
\begin{DoxyParamCaption}
\item[{const string \&}]{sockid, }
\item[{const {\bf IPv4} \&}]{src\_\-host, }
\item[{const uint32\_\-t \&}]{src\_\-port, }
\item[{const string \&}]{new\_\-sockid, }
\item[{bool \&}]{accept}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, protected, virtual\mbox{]}}}}
\label{classTestSocket4TCPServer_a9074a0fe1b0c3f6485f2974595fea26d}


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

Method invoked by target implementing socket4/0.1 when a connection request is received from an \hyperlink{classIPv4}{IPv4} source. It applies only to TCP sockets.


\begin{DoxyParams}{Parameters}
{\em sockid} & \hyperlink{protocolthe-p}{the} identifier associated with socket where \hyperlink{protocolthe-p}{the} event occurred.\\
\hline
{\em src\_\-host} & \hyperlink{protocolthe-p}{the} connecting host.\\
\hline
{\em src\_\-port} & \hyperlink{protocolthe-p}{the} connecting IP port.\\
\hline
{\em new\_\-sockid} & \hyperlink{protocolthe-p}{the} identifier associated with \hyperlink{protocolthe-p}{the} new socket that has been created to handle \hyperlink{protocolthe-p}{the} new connection.\\
\hline
{\em accept} & if true, \hyperlink{protocolthe-p}{the} connection request has been accepted, otherwise it has been rejected. \\
\hline
\end{DoxyParams}


Implements \hyperlink{classTestSocket4TCP_a3fa2fe3daf7b750380d6a5d686e5a2e8}{TestSocket4TCP}.

\hypertarget{classTestSocket4TCPServer_a796bf38fe34f19b5d6dd9d8375428bd6}{
\index{TestSocket4TCPServer@{TestSocket4TCPServer}!socket4\_\-user\_\-0\_\-1\_\-outgoing\_\-connect\_\-event@{socket4\_\-user\_\-0\_\-1\_\-outgoing\_\-connect\_\-event}}
\index{socket4\_\-user\_\-0\_\-1\_\-outgoing\_\-connect\_\-event@{socket4\_\-user\_\-0\_\-1\_\-outgoing\_\-connect\_\-event}!TestSocket4TCPServer@{TestSocket4TCPServer}}
\subsubsection[{socket4\_\-user\_\-0\_\-1\_\-outgoing\_\-connect\_\-event}]{\setlength{\rightskip}{0pt plus 5cm}{\bf XrlCmdError} TestSocket4TCPServer::socket4\_\-user\_\-0\_\-1\_\-outgoing\_\-connect\_\-event (
\begin{DoxyParamCaption}
\item[{const string \&}]{sockid}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, protected, virtual\mbox{]}}}}
\label{classTestSocket4TCPServer_a796bf38fe34f19b5d6dd9d8375428bd6}


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

Method invoked by target implementing socket4/0.1 when an outgoing connection request originated by \hyperlink{protocolthe-p}{the} local host is completed. It applies only to TCP sockets. Note that if \hyperlink{protocolthe-p}{the} connection failed, \hyperlink{protocolthe-p}{the} error\_\-event will be dispatched instead.


\begin{DoxyParams}{Parameters}
{\em sockid} & \hyperlink{protocolthe-p}{the} identifier associated with socket where \hyperlink{protocolthe-p}{the} event occurred. \\
\hline
\end{DoxyParams}


Implements \hyperlink{classTestSocket4TCP_ac6799d268b1dbbfd3712711ebfc6254c}{TestSocket4TCP}.

\hypertarget{classTestSocket4TCPServer_a3a15aead7ab951b493158d689f4b0b32}{
\index{TestSocket4TCPServer@{TestSocket4TCPServer}!socket4\_\-user\_\-0\_\-1\_\-recv\_\-event@{socket4\_\-user\_\-0\_\-1\_\-recv\_\-event}}
\index{socket4\_\-user\_\-0\_\-1\_\-recv\_\-event@{socket4\_\-user\_\-0\_\-1\_\-recv\_\-event}!TestSocket4TCPServer@{TestSocket4TCPServer}}
\subsubsection[{socket4\_\-user\_\-0\_\-1\_\-recv\_\-event}]{\setlength{\rightskip}{0pt plus 5cm}{\bf XrlCmdError} TestSocket4TCPServer::socket4\_\-user\_\-0\_\-1\_\-recv\_\-event (
\begin{DoxyParamCaption}
\item[{const string \&}]{sockid, }
\item[{const string \&}]{if\_\-name, }
\item[{const string \&}]{vif\_\-name, }
\item[{const {\bf IPv4} \&}]{src\_\-host, }
\item[{const uint32\_\-t \&}]{src\_\-port, }
\item[{const vector$<$ uint8\_\-t $>$ \&}]{data}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, protected, virtual\mbox{]}}}}
\label{classTestSocket4TCPServer_a3a15aead7ab951b493158d689f4b0b32}


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

Method invoked by target implementing socket4/0.1 when a packet arrives from an \hyperlink{classIPv4}{IPv4} source.


\begin{DoxyParams}{Parameters}
{\em sockid} & \hyperlink{protocolthe-p}{the} identifier associated with socket where \hyperlink{protocolthe-p}{the} event occurred.\\
\hline
{\em if\_\-name} & \hyperlink{protocolthe-p}{the} interface name \hyperlink{protocolthe-p}{the} packet arrived on, if known. If unknown, then it is an empty string.\\
\hline
{\em vif\_\-name} & \hyperlink{protocolthe-p}{the} vif name \hyperlink{protocolthe-p}{the} packet arrived on, if known. If unknown, then it is an empty string.\\
\hline
{\em src\_\-host} & \hyperlink{protocolthe-p}{the} originating host.\\
\hline
{\em src\_\-port} & \hyperlink{protocolthe-p}{the} originating IP port.\\
\hline
{\em data} & \hyperlink{protocolthe-p}{the} data received. \\
\hline
\end{DoxyParams}


Implements \hyperlink{classTestSocket4TCP_a845bc535792885ac183e4c1d60266955}{TestSocket4TCP}.

\hypertarget{classTestSocket4TCPServer_a3d9955c4cd39383d6f5bdb265398573d}{
\index{TestSocket4TCPServer@{TestSocket4TCPServer}!start\_\-sending@{start\_\-sending}}
\index{start\_\-sending@{start\_\-sending}!TestSocket4TCPServer@{TestSocket4TCPServer}}
\subsubsection[{start\_\-sending}]{\setlength{\rightskip}{0pt plus 5cm}void TestSocket4TCPServer::start\_\-sending (
\begin{DoxyParamCaption}
\item[{uint32\_\-t}]{bytes, }
\item[{uint32\_\-t}]{ipg\_\-ms}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classTestSocket4TCPServer_a3d9955c4cd39383d6f5bdb265398573d}


Start sending packets. 


\begin{DoxyParams}{Parameters}
{\em bytes} & size of each packet. \\
\hline
{\em ipg\_\-ms} & interpacket gap in milliseconds. \\
\hline
\end{DoxyParams}


Implements \hyperlink{classTestSocket4TCP}{TestSocket4TCP}.



The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/fea/tests/test\_\-xrl\_\-sockets4\_\-tcp.cc\end{DoxyCompactItemize}
