"Devesh Pujari" <[EMAIL PROTECTED]> said: > In pcap_open() method there is a field to specify timeout but i > wanted to specify while reading the packets because my timeout > parameter can change. But pcap_next_ex() does not take any timeout > parameters. First, don't post in html.
There's no API for it, so you must call PacketSetReadTimeout() directly. Then the problem is to get at the ADAPTER pointer since the internals are hidden in a generic pcap_t. Something like this should do it: ADAPTER* adapter = (ADAPTER*) *(char*)fp; PacketSetReadTimeout (adapter, timeout); But, IMHO you should drop pcap API and use the event-handle provided by PacketGetReadEvent(). More powerful and gives you more control. --gv ================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] ==================================================================
