utils (version 3.2.3)

close.socket: Close a Socket

Description

Closes the socket and frees the space in the file descriptor table. The port may not be freed immediately.

Usage

close.socket(socket, ...)

Arguments

socket
a socket object
...
further arguments passed to or from other methods.

Value

logical indicating success or failure

See Also

make.socket, read.socket.

Compiling in support for sockets is optional: see capabilities("sockets") to see if it is available.