[Interest] Packet arrival-time resolution? QUdpSocket

Thiago Macieira thiago.macieira at intel.com
Tue Nov 28 23:49:19 CET 2017


On Tuesday, 28 November 2017 13:44:16 PST Thiago Macieira wrote:
> On Tuesday, 28 November 2017 12:07:23 PST Jason H wrote:
> > > 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*?
> 
> Quick testing reveals the timestamp only works if the packet was received
> from the network. Loopback doesn't count and that's all I had tested.

Never mind, I had the wrong constant in the source code. On BSDs, 
SCM_TIMESTAMP != SO_TIMESTAMP.

It's working now.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list