close_connection | R Documentation |
Disconnect from the server.
close_connection(connection)
connection |
a connection created by
|
This function closes the connection to the BOINC server and frees up busy
resources. In the case of ssh, it just calls the
ssh_disconnect()
function from the ssh
package. In the case of the http/https interface, it looks for a link to the
exit page on the home page and follows it.
When errors occur, execution can be stopped with the following messages:
for http/https connections:
"Already disconnected."
## Not run: # For ssh connection: con = create_connection(server = "ssh://boinc.local", dir = "~/projects/myproject", username = "boincadm", password = "0000") # For http connections: con = create_connection(server = "http://boinc.local", dir = "myproject", username = "submitter@example.com", password = "000000") # For https connections: con = create_connection(server = "https://boinc.local", dir = "myproject", username = "submitter@example.com", password = "000000") ... # Release resources: close_connection(con) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.