Timestamps for TCP packets?

Thomas Johnson thomas.j.johnson at gmail.com
Fri Oct 2 09:03:30 CEST 2009


Is there any way to get kernel-level timestamps for TCP packets while
still using the standard python sockets library for communication? I
need to communicate over a TCP connection as easily as possible, but
also record the timestamps of the incoming and outgoing timestamps at
microsecond or nanosecond resolution.

The sockets library is of course great for the communication, and I've
seen some python libraries that do packet sniffing and record
timestamps, but it's not clear that I can do both at the same time.



More information about the Python-list mailing list