* fhandler_socket.cc (fhandler_socket::ioctl): Add FIONREAD handling.
This commit is contained in:
parent
cec4879206
commit
9ec70d2019
|
@ -1,3 +1,7 @@
|
||||||
|
2004-02-09 Ralf Habacker <ralf.habacker@freenet.de>
|
||||||
|
|
||||||
|
* fhandler_socket.cc (fhandler_socket::ioctl): Add FIONREAD handling.
|
||||||
|
|
||||||
2004-02-08 Christopher Faylor <cgf@redhat.com>
|
2004-02-08 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* debug.h (console_printf): Define for non-debugging condition.
|
* debug.h (console_printf): Define for non-debugging condition.
|
||||||
|
|
|
@ -1241,6 +1241,11 @@ fhandler_socket::ioctl (unsigned int cmd, void *p)
|
||||||
*(int *) p ? "started" : "cancelled");
|
*(int *) p ? "started" : "cancelled");
|
||||||
set_async (*(int *) p);
|
set_async (*(int *) p);
|
||||||
break;
|
break;
|
||||||
|
case FIONREAD:
|
||||||
|
res = ioctlsocket (get_socket (), FIONREAD, (unsigned long *) p);
|
||||||
|
if (res == SOCKET_ERROR)
|
||||||
|
set_winsock_errno ();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
/* We must cancel WSAAsyncSelect (if any) before setting socket to
|
/* We must cancel WSAAsyncSelect (if any) before setting socket to
|
||||||
* blocking mode
|
* blocking mode
|
||||||
|
|
Loading…
Reference in New Issue