Hi,
On 19 Jul 2002, James Antill wrote:
> The more general spelling is FIONREAD, and I generally find that only
> crap network applications need to use it. Good ones just try and read
> a largish amount of data into a buffer.
That doesn't matter as long as you haven't got any idea on how much data
will be read. Especially relaying between two completely different hosts,
possibly unknown protocols, you don't have a chance to know who will send
next. Without TIOCINQ you'll almost be shot if you have received lots of
lots of stuff from the client and expect any response from the server. You
just won't get it.
Give me another version of the appended piece of code that won't use
ioctl, and I'll consider an acknowledgement.
Regards,
Thunder
-- (Use http://www.ebb.org/ungeek if you can't decode) ------BEGIN GEEK CODE BLOCK------ Version: 3.12 GCS/E/G/S/AT d- s++:-- a? C++$ ULAVHI++++$ P++$ L++++(+++++)$ E W-$ N--- o? K? w-- O- M V$ PS+ PE- Y- PGP+ t+ 5+ X+ R- !tv b++ DI? !D G e++++ h* r--- y- ------END GEEK CODE BLOCK------
This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:29 EST