Re: [Rd] Possible changes to connections

From: Stephen B. Weston <>
Date: Fri, 01 Jun 2007 11:05:01 -0400

Prof Brian Ripley <> writes:

> [I know there is a call to getConnection in package gtools, but
> the return value is unused!]

Speaking of connections and gtools, I've been wondering if the gtools setTCPNoDelay function's method of getting the Unix file descriptor of a socket connection is safe. It's basically doing this:

   d <- as.integer(socketConnection("localhost", 80)[1])

Is that depending on an implementation detail that may change? I think it's useful to allow C extensions to set OS specific socket options on connection objects. But perhaps Jeffrey Horner's proposal addresses this need. mailing list Received on Fri 01 Jun 2007 - 15:22:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 01 Jun 2007 - 23:33:59 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.