[Winpcap-users] RE: Packet timestamp strangeness (Richard Hansen)
Ioan Popescu
ipopescu at dataq.com
Fri Jun 30 14:49:47 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Mark Buchanan wrote:
> Take a close look at the initial set up of the adapter (pcap_open or
> pcap_open_live function) - the read timeout parameter is critical to
> what you are trying to do. The lowest value of 1 ms might not be fast
> enough for you. Check the documentation - if set to 0 this might return
> immediately on every packet.
Use "-1" as the timeout to return immediately.
> Try running your packet capture application in real time mode as well. I
> don't know how to do this in C++ but I did this in my .NET application
> and it made an enormous difference.
Change process priority in C/C++:
SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS);
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
iQIVAwUBRKU6CnGK1KGABytRAQq8xQ//SQmh11Htxnx/IuOep6J/IH73zX6EAOe4
RRutfjjAfZ9YkrBxiDbW5YPTTKg1ksQjJ0Gqw4ayt9RMivWTMtPy8QJ/3ZF/oYsG
A4Q572VOWe65wWuntKLDvGzX3iHcV9zeSeOxg87eVmTIa22x8qecq2qFIfYvwpKv
AMRaOanqFL7n3hudmlFuZwnHhe+3tXt+vrWfI1mNzeo+RwlswWzho1aFpvvsQQzV
2RRYc4o9EXlGnZ/7RlV3MLNt7qEy5iWE9zN3MWPj/xNIWLyFgocsFD7hYrRlp8PX
2MQfuoJ9KT3PJohR4PVmczjp+jEpbd6EBfi4zWiOWUmrv2o+84IvR7JmrWBpQxXu
vQNgzyyOXzXipJkCjPaDJOciNH/y0g/3QD1IMS3oS6KlEAfUd2MZbQkeYMbZZAzf
ctE6uHOzKNTS70XR41gVSnwnHH6IubyNP9vcH/jlPmiiuiLMAZbpAo1eJFA1QhuG
pGuc97c+t2CJcv6AHJA5NaJEiB9IIBKhSYiamMYiWacO00CjdEIK1Fy51kvzT413
ZkWAw2a/nqyV77ZSLiDGP1zYVJcIA9larRZRb8jkpELx4IenTZakqcI10ASaPrlw
UEISYo07uvTtWyLv5ZAUV9DOHKTdcCu7n/NOTLnZnyaC6JUkm6qGb8eJETEf4ouI
3VTks9jiF8Y=
=dCPl
-----END PGP SIGNATURE-----
More information about the Winpcap-users
mailing list