int pcap_loop(pcap_t *, int, pcap_handler, u_char *)
. When a packet is captured, listener.gotPacket(Packet)
is called in the thread which called the loop()
. And then this PcapHandle waits for the thread to return from the gotPacket()
before it retrieves the next packet from the pcap capture buffer.
@param packetCount
@param listener
@throws PcapNativeException
@throws InterruptedException
@throws NotOpenException
|
|
|
|
|
|