I'm about to write a program that analyzes network traffic. after searching for answers and not finding any on the net, a few questions:
Capturing network traffic - I'm using the winpcap library for the analyzis. does the capture functionality captures all packets or loss of packets can occur. and if loss occurs how do I prevent it from happening.
Analyzing network traffic - is it better to capture (and analyze) each packet separately or to capture some (in each time) as chunks.
What's easier to handle - tcpdump or winpcap library functionality (I am using the winpcap library at the current time)
Example code to capture and analyze pcap file - not those from jnetpcap website.
jnetpcap website offers examples but not dealing with this questions.
Thanks in advance, Andrei