[R-SIG-Finance] [R-sig-finance] Fwd: Question on multiple sessions...
Daniel Cegielka
daniel.cegielka at gmail.com
Thu Feb 12 18:07:03 CET 2009
Jeff Ryan pisze:
>
> readBin on *nix when non-blocking will return a character(0) (or
> whatever you request) when _nothing_ is available to read. That is
> testable and logical. On Windows (this is the point related to
> cross-platform) it returns garbage. No way to test/etc. Additionally
> you are limited by nul terminated strings in R's processing. There
> are workarounds, but they are just that.
>
> This is all within the context of IBrokers mind you, other connections
> will be different in terms of requirements. IB uses simple
> nul-terminated character messages.
>
http://code.google.com/p/ibrokers/source/browse/trunk/R/processMsg.R
So if I understand this code...
daniel
More information about the R-SIG-Finance
mailing list