in reply to A non-blocking server using 'select' calls
See IO::Socket::INET -- Jettero verses non-blocking in windows for lots of stuff. That is raw socket code but your problem is simply that you need to read one byte at a time if you want to do *teletype mode*. At the moment you read POSIX::BUFSIZ which is probably 512 bytes, thus the blocking while it waits for the rest of the data. s/POSIX::BUFSIZ/1/ and all should be happy.
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A non-blocking server using 'select' calls
by nikos (Scribe) on Nov 11, 2004 at 10:14 UTC | |
by tachyon (Chancellor) on Nov 11, 2004 at 10:31 UTC | |
by nikos (Scribe) on Nov 11, 2004 at 11:34 UTC | |
by tachyon (Chancellor) on Nov 11, 2004 at 11:47 UTC | |
by nikos (Scribe) on Nov 11, 2004 at 11:53 UTC | |
|