hi all,

I am doing my masters project on ad hoc networks routing. In my protocol I
am maintaing a list of packet ids at source Node which are having
their individual expaire times.
Lets think id1 is added to List at t1 time,
               id2 is added to List at t2 time.
if max time to stay in List for any Id is n sec
then t1 should be deleted from list at t1+n
                                   and t2 at      t2+n
If i am making List and Timer classes as friends the timer will expire
periodically for every n sec. but i need an expire event according to my ids
life time in list..
*How to implement this List and Timer.....?*
*My Idea: *
1. A simple List(Queue-FIFO) to maintain the Ids
2. A List_Timer class(TimerHandler)
3. When an Id is insterted to List(Queue) it creates an object for Timer,
the timer will shcduled for n sec. If timer expaires, Id is deleted from
List(Queue)

will it works..?

thanking you in advance....


-- 
Kartheek S

Reply via email to