jcs:open() Function

Syntax

var $connection = jcs:open(remote-hostname, username, passphrase)

Description

Return a connection handle that can be used to execute remote procedure calls (RPCs) using the jcs:execute() extension function. The connection handle is closed with the jcs:close() function.

Parameters

Return Value

The following example shows how to connect to a local device:

var $connection = jcs:open()

The following example shows how to connect to a remote device:

var $connection = jcs:open(remote-hostname)

The following example shows how the user bsmith with a passphrase password obtains a connection handle to the server fivestar:

var $connection = jcs:open("fivestar", "bsmith", "password");

Related Topics