Date: Fri, 2 Sep 2005 09:50:07 -0400 From: Steven Elkins <sgelkins@gmail.com> To: freebsd-questions@freebsd.org Subject: TIOCOUTQ ioctl for non-blocking socket Message-ID: <ceb73c8f05090206505c9e8de3@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello everyone, I have to port some non-blocking socket output code from Linux to FreeBSD and I'm wondering how far I need to go to overcome a problem.=20 On Linux this code puts the amount of data waiting in the socket's transmit queue into 'remaining'. int remaining =3D 0; int rc =3D ioctl(fileDescriptor, TIOCOUTQ, &remaining); Testing rc on FreeBSD and printing errno, I see... ioctl: 45 Operation not supported Is there another way to ask the question on FreeBSD? Or should I be changing the non-blocking socket output design? Thanks, Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ceb73c8f05090206505c9e8de3>