Bing found these results
- Viewed 65k times15answered Aug 8, 2011 at 9:18
It's happening very quickly, that's why you don't see anything. What you're doing:
ioctl: Is there data for me ? No, nothing yet
recv: Block until there is data for me. Some (short) time later: Here is your data
So if you really want to see FIONREAD, just wait for it.
/* Try FIONREAD until we get *something* or ioctl fails. */while (!bytesAv && ioctl (m_Socket,FIONREAD,&bytesAv) >= 0)sleep(1);Content Under CC-BY-SA license - Question & Answer
ioctl() - 装置の制御 - IBM
Explore further
Winsock IOCTL (Winsock2.h) - Win32 apps | Microsoft Learn
What does FIONREAD of UDP (datagram) sockets return?
c++ - ioctl with FIONREAD return value Sep 23, 2013 c - Linux - ioctl with FIONREAD always 0 Aug 13, 2013 ioctl_tty(2) - Linux manual page
ioctl(2) - FreeBSD
- People also ask
ioctl(2) - Linux manual page
IOCTL - IBM
FIONREAD - STREAMS Programming Guide - Oracle
ioctl(2) - OpenBSD manual pages
IOCTL(2) - System Calls - YOS OPENSONAR
Related searches for FIONREAD
- Some results have been removed