Description Usage Arguments Value Author(s) See Also
List all clients currently connected to a given R socket server, or their names (sockXXX).
1 2 | getSocketClients(port = 8888)
getSocketClientsNames(port = 8888)
|
port |
the port of the R socket server. |
getSocketClients()
returns a vector of character string with the
address of clients in the form XXX.XXX.XXX.XXX:YYY where XXX.XXX.XXX.XXX is
their ip address and YYY is their port. For security reasons, only localhost
clients (on the same machine) can connect to the socket server. Thus,
XXX.XXX.XXX.XXX is ALWAYS 127.0.0.1. However, the function returns the full IP
address, just in case of further extensions in the future. The name of these
items equals the corresponding Tcl socket name.
getSocketClientsNames()
returns only a list of the socket client names.
Philippe Grosjean (phgrosjean@sciviews.org)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.