node42.html

来自「用C++编写的GPRS协议栈源代码」· HTML 代码 · 共 42 行

HTML
42
字号
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><!--Converted with LaTeX2HTML 96.1 (Feb 5, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --><HTML><HEAD><TITLE>Modifications for use outside GPRS/GSM</TITLE><META NAME="description" CONTENT="Modifications for use outside GPRS/GSM"><META NAME="keywords" CONTENT="gprs"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><LINK REL=STYLESHEET HREF="gprs.css"></HEAD><BODY LANG="EN"> <A NAME="tex2html547" HREF="node43.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://cbl.leeds.ac.uk/nikos/figs/next_motif.gif"></A> <A NAME="tex2html545" HREF="node39.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="http://cbl.leeds.ac.uk/nikos/figs/up_motif.gif"></A> <A NAME="tex2html541" HREF="node41.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="http://cbl.leeds.ac.uk/nikos/figs/previous_motif.gif"></A>   <BR><B> Next:</B> <A NAME="tex2html548" HREF="node43.html">Commands at a glance</A><B>Up:</B> <A NAME="tex2html546" HREF="node39.html">Link Layer(LL)</A><B> Previous:</B> <A NAME="tex2html542" HREF="node41.html">Parameters</A><BR> <P><H2><A NAME="SECTION00153000000000000000">Modifications for use outside GPRS/GSM</A></H2><P>To use this acked/fragmented LL  for a non-GPRS/GSM mac layer, in the function<EM>sendACK()</EM> in  <I>&nbsp;ns</I>/ll.cc ,  change the variable &quot;dh&quot; according to the mac layerbeing used<P><PRE>      void LL::sendACK(Packet* p)        {                ...            hdr_mac_gprs *dh = HDR_MAC_GPRS(p);                ...         }</PRE><P>For example, to use with  mac802_11,  replace the shown line with:<P>         hdr_mac802_11 *dh =HDR_MAC802_11(p);<P><BR> <HR><P><ADDRESS><I>Richa Jain (96D07007) <BR>Tue Jul 24 22:29:53 IST 2001</I></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

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