Re: [Spice-devel] [(spice) PATCHv2 RFC 2/2] TIOCOUTQ - SIOCOUTQ and portability ifdefs

2013-07-22 Thread Yonit Halperin
Ack. The ping is sent over the display channel to check an upper limit for the roundtrip time. If the tcp stack is busy, we postpone the ping. So, without the ioctl, when the tcp stack is busy, the roundtrip estimation will probably be much bigger than the real one. However, we currently

[Spice-devel] [(spice) PATCHv2 RFC 2/2] TIOCOUTQ - SIOCOUTQ and portability ifdefs

2013-07-18 Thread Nahum Shalman
The ioctl on sockets is actually named SIOCOUTQ though its value is identical to TIOCOUTQ which is for terminals. SIOCOUTQ is linux specific so we add a header check and ifdef based on the presence of the header This prevents bogus ioctls on non-Linux platforms --- configure.ac |1 +