Java Mailing List Archive

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

Home » R Help for Statistical Computing »

[R] limit on read.socket?

rajeshj@cse.iitm.ac.in

2010-09-04

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi,

I have the following piece of code,

repeat{

ss<-read.socket(sockfd);
if(ss=="") break
output<-paste(output,ss)
}

but somehow, output is not receiving all the data that is coming through the socket.My suspicion is on the if statement. what happens if a white space occurs in between the string arriving over the socket?
 [[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.