Next: Timers
Up: MacGprs class in C++
Previous: Storage Structures
The methods created for the class Mac/GPRS are
- recv(Packet *p, Handler *h) : the entry point for the MAC
- ms_recv(Packet *p, Handler *h) : packet processing at the MS
- bs_recv(Packet *p, Handler *h) : processing a packet at the BS
- slot_allot(int ms_, int &freq, int &slot) : allot a slot to ms_,
return
values through &freq, &slot - send_res_reply (int dst, int freq, int slot) : creating a resource_reply
packet, to be sent on slot/freq
- send_res_request () : creating a resource_reply packet
- send_let_go() : creating a resource_release packet
- downslotHandler(Event *e) : actions at the end of every down slot
- upslotHandler(Event *e) : actions at the end of every up slot
- sendHandler(Event *e) : actions after packet has been transmitted
- recvHandler(Event *e) : actions after packet has been completely
received.
- releaseHandler(void) : on the expiry of the slot release timer
- backoffHandler(void) : on the expiry of the back off timer
- waitHandler(void) : on the expiry of the wait timer
- radioSwitch(int i) : switching the radio on/off to conserve energy.
- rx_from_phy(Packet* p) : remove MAC headers, check for collisions
- rx_from_ll(Packet* p) : add MAC header
- fwd_DATA_to_LL(Packet *p) : handle data according to type and pass
to
upper layer. - tx_onto_PHY(Packet *p ) : transmit onto air interface
Richa Jain (96D07007)
Tue Jul 24 22:29:53 IST 2001