R-devel:
I'll escalate this to a bug report once I can fully document, but
something is seriously wrong with readBin on non-blocking connections.
From ?readBin
Value:
For 'readBin', a vector of appropriate mode and length the number
of items read (which might be less than 'n').
On
Ryacas uses non-blocking sockets and works across all platforms
but uses readLines/writeLines, rather than readBin, to communicate with
yacas. You could look at its source code in case it brings anything to mind.
On Mon, May 18, 2009 at 1:40 PM, Jeff Ryan jeff.a.r...@gmail.com wrote:
R-devel:
Thanks Gabor.
Unfortunately read/writeLines won't work in this particular
application. Nor does readChar, as the returned values are not of a
fixed size. I need to read each unknown length character up until
an embedded null. readBin does this (almost) perfectly.
My current workaround is to