Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Behavior of SIO_FLUSH

When SIO_FLUSH socket ioctl is used in a Windows environment (in user space), I am confused as to what happens. Does this: (1) completely discard the data from the TCP/IP send queue into a black hole, or (2) push the queued send data across the connection until the buffer is empty, or (3) something else? Thanks!

like image 919
Brian Avatar asked Nov 17 '25 21:11

Brian


1 Answers

With Windows, you can never be sure. However, this(search for SIOFLUSH) says it discards the send queue associated with the socket. This is what I also expect when I use SIO_FLUSH

like image 68
Aditya Sehgal Avatar answered Nov 20 '25 13:11

Aditya Sehgal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!