getSocketClients: Get infos about socket clients

Description Usage Arguments Value Author(s) See Also

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



Search within the svSocket package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.