closeSocketClients {svSocket}R Documentation

Close one or more clients currently connected.

Description

The socket servers asks to clients to nicely disconnect (possibly doing further process on their side). This function is used by stopSocketServer, but it can also be invoked manually to ask for disconnection of a particular client. Note that, in this case, the client still can decide not to disconnect! The code send to ask for client disconnection is: \b.

Usage

closeSocketClients(sockets = "all",  serverport = 8888)

Arguments

sockets The list of socket client names (sockXXX) to close, or "all" (by default) to disconnect all currently connected clients.
serverport The corresponding R socket server port.

Author(s)

Philippe Grosjean (phgrosjean@sciviews.org)

See Also

sendSocketClients


[Package svSocket version 0.9-43 Index]