[19358] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] Is there a function like R's open.socket SPlus?

daemon@ATHENA.MIT.EDU (Armin S. A. Roehrl)
Thu Sep 30 07:33:57 1999

Message-Id: <37F348FE.D703D337@epfl.ch>
Date: Thu, 30 Sep 1999 13:26:54 +0200
From: "Armin S. A. Roehrl" <Armin.Roehrl@epfl.ch>
Mime-Version: 1.0
To: s-news@wubios.wustl.edu
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Dear Splus gurus,

	is there a function like R's make.socket to open
a port to connect to/listen on. I do not want to dyn.load an easy to
code 
routine  for compatability reasons.

Thanks for your help,
	Armin


from R:
> ?make.socket

Create a socket connection

     make.socket(host="localhost", port, fail=TRUE, server=FA
LSE)
     close.socket(socket)

Arguments:

    host: name of remote host

    port: port to connect to/listen on

    fail: failure to connect is an error?

  server: a server socket?

Description:

     With `server=FALSE' attempts to open a client socket to
     the specified port and host. With `server=TRUE' listens
     on the specified port for a connection and then returns
     a server socket. It is a good idea to use `on.exit' to
     ensure that a socket is closed, as you only get 64 of
     them.


-- 
	Armin

Swiss Federal Institute of Technology 
http://statwww.epfl.ch/people/roehrl
Kya aap statooed hai?                   http://www.statoo.com
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

home help back first fref pref prev next nref lref last post