node20.html

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

HTML
34
字号
<!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>Methods</TITLE><META NAME="description" CONTENT="Methods"><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="tex2html317" HREF="node21.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://cbl.leeds.ac.uk/nikos/figs/next_motif.gif"></A> <A NAME="tex2html315" HREF="node18.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="http://cbl.leeds.ac.uk/nikos/figs/up_motif.gif"></A> <A NAME="tex2html309" HREF="node19.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="tex2html318" HREF="node21.html">Timers</A><B>Up:</B> <A NAME="tex2html316" HREF="node18.html">MacGprs class in C++</A><B> Previous:</B> <A NAME="tex2html310" HREF="node19.html">Storage Structures</A><BR> <P><H3><A NAME="SECTION00129200000000000000">Methods</A></H3><P>The methods created for the class Mac/GPRS are<UL><TT><LI> recv(Packet *p, Handler *h) : the entry point for the MAC<LI> ms_recv(Packet *p, Handler *h) : packet processing at the MS<LI> bs_recv(Packet *p, Handler *h) :  processing a packet  at the BS<LI> slot_allot(int ms_, int &amp;freq, int &amp;slot) : allot a slot to ms_,return<BR> values through &amp;freq, &amp;slot<LI> send_res_reply (int dst, int freq, int slot) : creating a resource_reply packet, to be sent on slot/freq<LI> send_res_request () : creating a resource_reply packet<LI> send_let_go() : creating a resource_release packet<LI> downslotHandler(Event *e) : actions at the end of every down slot<LI> upslotHandler(Event *e) : actions at the end of every up slot<LI> sendHandler(Event *e) : actions after packet has been transmitted<LI> recvHandler(Event *e) :  actions after packet has been completelyreceived.<LI> releaseHandler(void) : on the expiry of the slot release timer<LI> backoffHandler(void) : on the expiry of the back off timer<LI> waitHandler(void) : on the expiry of the wait timer<LI> radioSwitch(int i) : switching the radio on/off to conserve energy.<LI> rx_from_phy(Packet* p) : remove MAC headers, check for collisions<LI> rx_from_ll(Packet* p) : add MAC header<LI> fwd_DATA_to_LL(Packet *p) : handle data according to type and passto <BR> upper layer.<LI> tx_onto_PHY(Packet *p ) : transmit onto air interface</TT></UL><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 + -
显示快捷键?