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. -- http://mail.python.org/mailman/listinfo/python-list