📄 node107.html
字号:
<html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><!--Converted with jLaTeX2HTML 2002 (1.62) JA patch-1.4patched version by: Kenshi Muto, Debian Project.LaTeX2HTML 2002 (1.62),original version by: Nikos Drakos, CBLU, University of Leeds* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan* with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --><HTML><HEAD><TITLE>10.5 Examples: Tcp, TCP Sink Agents</TITLE><META NAME="description" CONTENT="10.5 Examples: Tcp, TCP Sink Agents"><META NAME="keywords" CONTENT="everything"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META NAME="Generator" CONTENT="jLaTeX2HTML v2002 JA patch-1.4"><META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"><LINK REL="STYLESHEET" HREF="everything.css" tppabs="http://www.isi.edu/nsnam/ns/doc/everything.css"><LINK REL="next" HREF="node113.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node113.html"><LINK REL="previous" HREF="node103.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node103.html"><LINK REL="up" HREF="node99.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node99.html"><LINK REL="next" HREF="node108.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node108.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html2951" HREF="node108.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node108.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html2945" HREF="node99.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node99.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html2939" HREF="node106.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node106.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html2947" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html2949" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html2952" HREF="node108.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node108.html">10.5.1 Creating the Agent</A><B> Up:</B> <A NAME="tex2html2946" HREF="node99.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node99.html">10. Agents</A><B> Previous:</B> <A NAME="tex2html2940" HREF="node106.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node106.html">10.4.3 OTcl Methods</A>   <B> <A NAME="tex2html2948" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html2950" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H1><A NAME="SECTION03750000000000000000"></A><A NAME="sec:agentexample"></A><BR>10.5 Examples: Tcp, TCP Sink Agents</H1><P>The TCP../ns-2/tcp.h represents a simplified TCP sender.It sends data to a <TT>TCPSink</TT> agent and processes its acknowledgments.It has a separate object associated with it which representsan application's demand.By looking at the TCPAgent../ns-2/tcp.h and TCPSinkAgent../ns-2/tcp-sink.h,we may see how relatively complex agents are constructed.An example from the Tahoe TCP agent <TT>TCPAgent</TT> is also givento illustrate the use of timers.<P><BR><HR><!--Table of Child-Links--><A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A><UL><LI><A NAME="tex2html2953" HREF="node108.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node108.html">10.5.1 Creating the Agent</A><LI><A NAME="tex2html2954" HREF="node109.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node109.html">10.5.2 Starting the Agent</A><LI><A NAME="tex2html2955" HREF="node110.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node110.html">10.5.3 Processing Input at Receiver</A><LI><A NAME="tex2html2956" HREF="node111.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node111.html">10.5.4 Processing Responses at the Sender</A><LI><A NAME="tex2html2957" HREF="node112.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node112.html">10.5.5 Implementing Timers</A></UL><!--End of Table of Child-Links--><BR><HR><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -