asynchronous time handler : Kernel mode
ndritsos <[email protected]> Wed, 04 Sep 2013 01:44:52 +0200
| Newsgroups | gmane.network.routing.click |
|---|---|
| Message-ID | <[email protected]> |
hello ,
i want to ask how can i set time event on a click element in KERNEL mode,
for example i have created an element : myElement
prevElement()-> myElement() ->nextElement();
in myElement, i'm receiving some special packets , for each packet i
need to hold some info like dst ip, currentTime,
so i have an array : myarray.add(p->ip, getCurrentSystemTime,
time_threshold, false) ;
and then I forward the packet .
in this point , for each value in the array i want to set an event :
if ( myarray[index].getTime()+myarray[index].getThreshold >=
getCurrentTime() ) THEN
CALL expirefunction()
int expirefunction(){
// do something
}
Any idea someone how to add this event in my element?