Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

[R] slow socket read in R?

rajeshj@cse.iitm.ac.in

2010-09-07


Author LoginPost Reply

Hi,

I have a server(written in C++) that is continuously sending data through a socket(the server does some processing between sends). When I receive the data through a client written in R, the receive is slower than the send of the server even if I'm just receiving at the client and not processing. I noticed this because the server sends records of the form
<r>x,y,z<r> with each send
and the client receives the record. I've set some maxlen and the client receives maxlen with something like
<r>x,y,z<r><r>a,b

why is the R receive slower even when the server is processing between sends?
 [[alternative HTML version deleted]]

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
©2008 r-help.com - Jax Systems, LLC, U.S.A.