[Click] asynchronous time handler : Kernel mode
ndritsos
ndritsos at gmail.com
Tue Sep 3 19:44:52 EDT 2013
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?
More information about the click
mailing list