remote_close()
Close a session with a remote PATROL Agent.
Syntax
remote_close(sessionID)
Parameter
Parameter | Definition |
---|---|
sessionID | identifier of the remote PATROL Agent session that is to be closed The sessionID is returned by theremote_open() function when you open a remote PATROL Agent session. |
Description
The remote_close() function closes the connection to the remote PATROL Agent that is identified by sessionID. The remote_close() returns 1 if it successfully closes the remote session, and 0 otherwise.
For more information on using the remote functions, see remote_open().
Example
The following example shows the remote_close() function:
if (remote_close(session) != 1) {
# call user-written error handling routine
CloseRemoteFailure();
}
# call user-written error handling routine
CloseRemoteFailure();
}
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*