[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Once again about the handler function



Hello 
  i am trying to include Paolo Losi Patch of Wfq 
Scheduler in the DiffServ, for which i need to have Seperate Handler 
for the Queue..so i was wondering, if i can seperate handle function 
for dsREDQueue class?
some thing of following way

class dsREDQueue;

class dsREDHandler : public Handler {
    public:
        dsREDHandler(dsREDQueue *queue) : q(queue){};
        void handle(Event *e);
    protected:
        dsREDQueue* q;
}; 

class dsREDQueue : public Queue {
public: 
    dsREDQueue();
    int command(int argc, const char*const* argv);
        void handle(Event*);
protected:
    void schedRED();
    WFQHandler wfq_hand;
        Event *red_event;