totty@m.cs.uiuc.edu (10/17/88)
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!"