Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!husc6!think!ames!ncar!tank!uxc!uxc.cso.uiuc.edu!a.cs.uiuc.edu!m.cs.uiuc.edu!totty From: totty@m.cs.uiuc.edu Newsgroups: comp.unix.questions Subject: Input Queue Size Message-ID: <9000011@m.cs.uiuc.edu> Date: 16 Oct 88 17:21:00 GMT Article-I.D.: m.9000011 Lines: 20 Nf-ID: #N:m.cs.uiuc.edu:9000011:000:755 Nf-From: m.cs.uiuc.edu!totty Oct 16 12:21:00 1988 Here are some UNIX file i/o questions. (1) Is there any way to tell how much data is waiting to be read off of an input file descriptor (or socket)? I want to read as many bytes as possible off of an input file descriptor without blocking. (2) If a socket is configured as 'non-blocking', and a recv is done on it, will it read as much as possible, or will it just return with errno = EWOULDBLOCK without performing even a partial operation? --- Bri / Brian Totty o o /__ __ o URH 655 Sherman / 909 S. Fifth o / / / / Champaign, IL 61820 \_/ "We have corn in /__/ / / totty@a.cs.uiuc.edu Massachusetts too!"