bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GSFileHandle doesn't work on Serial Ports


From: Marc Brünink
Subject: GSFileHandle doesn't work on Serial Ports
Date: Fri, 3 Feb 2006 16:14:33 +0100

Hi,

in [GSFileHandle read:length:] we use a read() system call. If I understood it correctly read() blocks until the requested amount of data is read or special circumstances raise (e.g. EOF). On a steady serial connection there's no such thing as EOT. Therefore [NSFileHandle availableData], [NSFileHandle readInBackgroundAndNotify],... block until READ_SIZE bytes are read. I've seen this on Windows XP, Solaris 10 and I belief on debain sarge, too.

Fortunately we've readDataInBackgroundAndNotifyLength:    :-)

I'm not on the list.

regards
Marc





reply via email to

[Prev in Thread] Current Thread [Next in Thread]