⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node423.html

📁 相关搜索: ns2仿真结果分析 all-awk ns2 ns2 无限网络中awk文件 ... [2.tcl.rar] - 在ns2平台上实现对AODV协议的模拟
💻 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>32.4 SCTP Applications</TITLE><META NAME="description" CONTENT="32.4 SCTP Applications"><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="node424.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node424.html"><LINK REL="previous" HREF="node422.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node422.html"><LINK REL="up" HREF="node402.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node402.html"><LINK REL="next" HREF="node424.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node424.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html7881"  HREF="node424.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node424.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html7875"  HREF="node402.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node402.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html7869"  HREF="node422.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node422.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html7877"  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="tex2html7879"  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="tex2html7882"  HREF="node424.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node424.html">32.5 Example Scripts</A><B> Up:</B> <A NAME="tex2html7876"  HREF="node402.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node402.html">32. SCTP Agents</A><B> Previous:</B> <A NAME="tex2html7870"  HREF="node422.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node422.html">32.3 Tracing SCTP Dynamics</A> &nbsp <B>  <A NAME="tex2html7878"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html7880"  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="SECTION06340000000000000000"></A>   <A NAME="sec:sctpApps"></A><BR>32.4 SCTP Applications</H1><P>SCTP supports legacy&nbsp;applications, but they obviously cannot      completely exploit all SCTP's features. For these applications, the      TCL-bound SCTP configuration parameters can be used to set      reliability and ordering options. However, these options cannot be      controlled per message using these parameters. Only SCTP-aware      application can be written to do so.&nbsp;applications wishing to      become SCTP-aware can use the sendmsg API as follows (see      <EM>apps/sctp_app1.{cc, h}</EM> as an example).<P><OL><LI>Create and fill an instance of the <TT>AppData_S</TT>	 structure (see <EM>sctp/sctp.h</EM>). The <TT>AppData_S</TT>	 structure has the following fields:<P><DL COMPACT><DT></DT><DD><TT>usNumStreams</TT> is the number of outgoing streams	    to setup during negotiation. Although this field is passed	    with every sendmsg call, it is only used during association	    setup. Once the association is established, this field is	    ignored.<P></DD><DT></DT><DD><TT>usNumUnreliable</TT> is the number of outgoing	    streams which are unreliable (now called partially	    reliable). The sender simply sets the lowest outgoing stream	    to unreliable/partially-reliable; the remaining ones are	    reliable. This field is also only used during association	    establishment.<P></DD><DT></DT><DD><TT>usStreamId</TT> is the stream ID of a message.<P></DD><DT></DT><DD><TT>usReliability</TT> is the reliability level (k-rtx	    value) of a message. This field is ignored if the message is	    sent on a reliable stream.<P></DD><DT></DT><DD><TT>eUnordered</TT> is the unordered boolean flag for a	    message.<P></DD><DT></DT><DD><TT>uiNumBytes</TT> is the number of bytes in a message.<P></DD></DL><P></LI><LI>Pass this object as the second parameter in SCTP's sendmsg:<P><TT>sctpAgent-sendmsg(numBytes, (char *)appData);</TT><P></LI></OL><P><HR><!--Navigation Panel--><A NAME="tex2html7881"  HREF="node424.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node424.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html7875"  HREF="node402.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node402.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html7869"  HREF="node422.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node422.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html7877"  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="tex2html7879"  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="tex2html7882"  HREF="node424.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node424.html">32.5 Example Scripts</A><B> Up:</B> <A NAME="tex2html7876"  HREF="node402.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node402.html">32. SCTP Agents</A><B> Previous:</B> <A NAME="tex2html7870"  HREF="node422.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node422.html">32.3 Tracing SCTP Dynamics</A> &nbsp <B>  <A NAME="tex2html7878"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html7880"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <!--End of Navigation Panel--><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -