From tlumley@u.washington.edu  Mon Sep 23 16:54:15 2002
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Mon, 23 Sep 2002 08:54:15 -0700 (PDT)
Subject: socket bug ??? (PR#2056)
In-Reply-To: <200209231430.QAA16928@pubhealth.ku.dk>
Message-ID: <Pine.A41.4.44.0209230848440.146180-100000@homer40.u.washington.edu>

On Mon, 23 Sep 2002 rwieland@zalf.de wrote:

> Please help me,
>
> I use R-1.4.1 and everything works fine. But with R-1.5.1 ist does'nt work:
>
> I have this put into a file called "socket.R"
>
> while(TRUE){
> con1 <- socketConnection(host="localhost",port=6021,server=TRUE);
> source(con1);
> close(con1);
> }
>
>

You may need to add blocking=TRUE to the call.  When I do that I can
connect by telnet and send commands (although they aren't run until I
close the connection.)

	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


socket bug ??? (PR#2056)
Thomas Lumley