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

📄 node55.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>5.5.2 Node Interface</TITLE><META NAME="description" CONTENT="5.5.2 Node Interface"><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="previous" HREF="node54.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node54.html"><LINK REL="up" HREF="node53.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node53.html"><LINK REL="next" HREF="node56.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node56.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html2155"  HREF="node56.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node56.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html2149"  HREF="node53.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node53.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html2145"  HREF="node54.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node54.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html2151"  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="tex2html2153"  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="tex2html2156"  HREF="node56.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node56.html">5.6 Commands at a</A><B> Up:</B> <A NAME="tex2html2150"  HREF="node53.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node53.html">5.5 Routing Module and</A><B> Previous:</B> <A NAME="tex2html2146"  HREF="node54.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node54.html">5.5.1 Routing Module</A> &nbsp <B>  <A NAME="tex2html2152"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html2154"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H2><A NAME="SECTION03252000000000000000">5.5.2 Node Interface</A></H2><P>To connect to the above interfaces of routing module, a node providesa similar set of interfaces:<UL><LI>In order to know which module to register during creation, the Node  class keeps a list of modules as a class variable.   The default value of this list contains only the base routing  module.  The Node class provides the following two <EM>procs</EM> to manipulate  this module list:  <BR><BR>When a node is created, it goes through the module list of the Node  class, creates all modules included in the list, and register these  modules at the node.<P>After a node is created, one may use the following instprocs to list  modules registered at the node, or to get a handle of a module with  a particular name:  <BR><BR></LI><LI>To allow routing modules register their interests of routing  updates, a node object provide the following instprocs:  <BR><BR>Similarly, the following instprocs provide hooks on the attachment  of transport agents:  <BR><BR>Notice that in all of these instprocs, parameter <TT>module</TT>  should be a module handle instead of a module name. </LI><LI>Node provides the following instprocs to manipulate its address and  port classifiers:  <UL><LI>[module, clsfr, hook]Node::insert-entry inserts    classifier <TT>clsfr</TT> into the entry point of the node. It also    associates the new classifier with <TT>module</TT> so that if this    classifier is removed later, <TT>module</TT> will be unregistered.    If <TT>hook</TT> is specified as a number, the existing classifier    will be inserted into slot <TT>hook</TT> of the new classifier.     In this way, one may establish a ``chain'' of classifiers; see    Figure&nbsp;<A HREF="node40.html#fig:node:multicast" tppabs="http://www.isi.edu/nsnam/ns/doc/node40.html#fig:node:multicast">5.2</A> for an example.    <B>NOTE</B>: <TT>clsfr</TT> needs NOT to be a classifier. In some    cases one may want to put an agent, or any class derived from    Connector, at the entry point of a node. In such cases, one simply    supplies <TT>target</TT> to parameter <TT>hook</TT>.</LI><LI>[module, clsfr, hook]Node::install-entry differs from    <TT>Node::insert-entry</TT> in that it deletes the existing    classifier at the node entry point, unregisters any associated    routing module, and installs the new classifier at that point.     If <TT>hook</TT> is given, and the old classifier is connected into    a classifier chain, it will connect the chain into slot    <TT>hook</TT> of the new classifier.     As above, if <TT>hook</TT> equals to <TT>target</TT>, <TT>clsfr</TT>    will be treated as an object derived from Connector instead of a    classifier. </LI><LI>[demux, port]Node::install-demux places the given    classifier <TT>demux</TT> as the default demultiplexer. If    <TT>port</TT> is given, it plugs the existing demultiplexer into    slot <TT>port</TT> of the new one. Notice that in either case it does    not delete the existing demultiplexer.  </LI></UL></LI></UL><P><HR><!--Navigation Panel--><A NAME="tex2html2155"  HREF="node56.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node56.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html2149"  HREF="node53.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node53.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html2145"  HREF="node54.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node54.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html2151"  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="tex2html2153"  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="tex2html2156"  HREF="node56.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node56.html">5.6 Commands at a</A><B> Up:</B> <A NAME="tex2html2150"  HREF="node53.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node53.html">5.5 Routing Module and</A><B> Previous:</B> <A NAME="tex2html2146"  HREF="node54.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node54.html">5.5.1 Routing Module</A> &nbsp <B>  <A NAME="tex2html2152"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html2154"  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 + -