Get infos about socket clients

Description

List all clients currently connected to a given R socket server, or their names (sockXXX).

Usage

1
2
getSocketClients(port = 8888)
getSocketClientsNames(port = 8888)

Arguments

port

the port of the R socket server.

Value

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.

Author(s)

Philippe Grosjean (phgrosjean@sciviews.org)

See Also

getSocketServers