#include <mac-802_3.h>
Inheritance diagram for MacHandler:


Public Member Functions | |
| MacHandler (Mac802_3 *m) | |
| virtual void | handle (Event *e)=0 |
| virtual void | cancel () |
| bool | busy (void) |
| double | expire (void) |
Protected Attributes | |
| Handler * | callback |
| Mac802_3 * | mac |
| Event | intr |
| bool | busy_ |
|
|
Definition at line 36 of file mac-802_3.h. References busy_, callback, and mac.
|
|
|
Definition at line 39 of file mac-802_3.h. References busy_. Referenced by Mac802_3::collision(), Mac802_3::recv_complete(), Mac802_3::resume(), Mac802_3::sendUp(), and Mac802_3::transmit().
00039 { return busy_; }
|
|
|
Reimplemented in Mac8023HandlerSend, MacHandlerRecv, MacHandlerRetx, and MacHandlerIFS. Definition at line 26 of file mac-802_3.cc. References busy_, Scheduler::cancel(), Scheduler::instance(), intr, mac, and PRNT_MAC_FUNCS. Referenced by MacHandlerIFS::cancel().
00026 {
00027 PRNT_MAC_FUNCS(mac);
00028 Scheduler& s = Scheduler::instance();
00029 assert(busy_);
00030 s.cancel(&intr);
00031 // No need to free the event intr since it's statically allocated.
00032 busy_ = 0;
00033 }
|
Here is the call graph for this function:

|
|
Definition at line 40 of file mac-802_3.h. References intr, and Event::time_. Referenced by Mac802_3::sendUp().
|
|
|
Implements Handler. Implemented in Mac8023HandlerSend, MacHandlerRecv, MacHandlerRetx, and MacHandlerIFS. |
|
|
|
Definition at line 42 of file mac-802_3.h. Referenced by MacHandler(). |
|
|
Definition at line 44 of file mac-802_3.h. Referenced by MacHandlerRetx::cancel(), MacHandlerRecv::cancel(), Mac8023HandlerSend::cancel(), cancel(), expire(), MacHandlerIFS::schedule(), MacHandlerRetx::schedule(), MacHandlerRecv::schedule(), and Mac8023HandlerSend::schedule(). |
|
1.3.3