LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   timeout to call back funtion (https://www.linuxquestions.org/questions/programming-9/timeout-to-call-back-funtion-702214/)

rameshgsl 02-04-2009 06:37 AM

timeout to call back funtion
 
I am trying to sniff the packets with the Net::Pcap::open_live and Net::Pcap::loop. But how can i add a time out for the call back function?

i.e. if i did'nt receive any packets for a given time, the call back function has to exit.

Thanks in advance


All times are GMT -5. The time now is 05:26 PM.