s-news
[Top] [All Lists]

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

To: s-news@wubios.wustl.edu
Subject: [S] Is there a function like R's open.socket SPlus?
From: "Armin S. A. Roehrl" <Armin.Roehrl@epfl.ch>
Date: Thu, 30 Sep 1999 13:26:54 +0200
Sender: owner-s-news@wubios.wustl.edu
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

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Is there a function like R's open.socket SPlus?, Armin S. A. Roehrl <=