[Interest] Packet arrival-time resolution? QUdpSocket

Jason H jhihn at gmx.com
Tue Nov 28 21:07:23 CET 2017



> Sent: Tuesday, November 28, 2017 at 2:45 PM
> From: "Thiago Macieira" <thiago.macieira at intel.com>
> To: interest at qt-project.org
> Subject: Re: [Interest] Packet arrival-time resolution? QUdpSocket
>
> On Tuesday, 28 November 2017 09:52:57 PST Thiago Macieira wrote:
> > > As for the API:
> > > https://stackoverflow.com/questions/13304672/socket-reading-and-timestamps
> > > - uses recvmsg()
> > > https://github.com/torvalds/linux/blob/master/Documentation/networking/tim
> > > e
> > > stamping.txt - really good guide It looks like Linux will support usec and
> > > even nsec resolution timestamps.
> > 
> > Thanks, "SO_TIMESTAMP" is what I was looking for.
> 
> Done. Test works fine on Linux.
> 
> It fails horribly on macOS, the timestamp is never given. It might be because 
> it's a loopback socket, so I need to check a little further.

I saw references to it working on BSD, so *shrug*?

> Windows will not be supported.
> 
> No link because the patch requires https://codereview.qt-project.org/212436 to 
> be merged upwards to 5.11 first.

Awesome!



More information about the Interest mailing list