Name

rpc

Synopsis

LZX: rpc
JavaScript: lz.rpc
Type: Class
Access: public
Topic: Components.RPC
Declared in: lps/components/rpc/rpc.lzx

Description

An abstract class to create remote objects.

Superclass Chain

node (LzNode) » rpc

Known Subclasses

Details

Properties (8)

autoload
<attribute name="autoload" type="boolean" value="true" />
public var autoload : boolean;
Load remote object during init. If false, create remote object by calling load(). Default is true.
_loadDel
<attribute name="_loadDel" type="expression" value="null" />
private var _loadDel : Object;
proxy
<attribute name="proxy" type="expression" value="null" />
public read-only var proxy : Object;
The remote proxy object. Proxy is set after the rpc object loads. Proxy contains client-side function stubs to remote methods. Each method takes an array of arguments and a delegate like: myrpc.proxy.remoteFunc( [ p1, p2, ..., pN ], delegate ); Remote methods with no arguments are passed in an empty array like: myrpc.proxy.otherRemoteFunc( [], delegate ); The delegate is used to handle the return value since RPC calls are asynchronous.
_registered
<attribute name="_registered" type="expression" value="${[]}" />
private var _registered : Object;
secure
<attribute name="secure" type="boolean" value="false" />
public var secure : boolean;
Make connection secure between client and the LPS secure (HTTPS). Default is false.
secureport
<attribute name="secureport" type="number" value="null" />
public var secureport : Number;
The port to use for the secure socket between the client and the LPS. If secure is false, this value is ignored.
_unloadDel
<attribute name="_unloadDel" type="expression" value="null" />
private var _unloadDel : Object;
_verifywithproxy
<attribute name="_verifywithproxy" type="boolean" value="true" />
private var _verifywithproxy : boolean;
Flag to verify with proxy whether declared calls exist.

Methods (7)

init()
<method name="init" />
private function init();
load()
<method name="load" />
public function load();
ABSTRACT: method to load the remote object interface.
_load()
<method name="_load" args="o" />
private function _load(o);
_register()
<method name="_register" args="callcontext, funcname" />
private function _register(callcontext, funcname);
Register a remote function to a call member
_setup()
<method name="_setup" args="o" />
private function _setup(o : Object);
If error, returns false, else true.
unload()
<method name="unload" />
public function unload();
Interface to unload proxy stub. Default is to null proxy.
_unload()
<method name="_unload" args="o" />
private function _unload(o);

Events (4)

ondata
<attribute name="ondata" />
public event ondata;
This event is triggered when declared inner calls do not handle their ondata events.
onerror
<attribute name="onerror" />
public event onerror;
This event is triggered when an error or timeout occurs associated with getting this object or calling one of its remote methods.
onload
<attribute name="onload" />
public event onload;
This event is triggered when the remote object is loaded.
onunload
<attribute name="onunload" />
public event onunload;
This event is triggered when the remote object is unloaded.

LZX Synopsis

<class name="lz.rpc" extends=" LzNode ">
  <attribute name=" autoload " type="boolean" value="true" />
  <attribute name=" _loadDel " type="expression" value="null" />
  <attribute name=" proxy " type="expression" value="null" />
  <attribute name=" _registered " type="expression" value="${[]}" />
  <attribute name=" secure " type="boolean" value="false" />
  <attribute name=" secureport " type="number" value="null" />
  <attribute name=" _unloadDel " type="expression" value="null" />
  <attribute name=" _verifywithproxy " type="boolean" value="true" />
  <method name=" init " />
  <method name=" load " />
  <method name=" _load " args="o" />
  <event name=" ondata " />
  <event name=" onerror " />
  <event name=" onload " />
  <event name=" onunload " />
  <method name=" _register " args="callcontext, funcname" />
  <method name=" _setup " args="o" />
  <method name=" unload " />
  <method name=" _unload " args="o" />
</class>

JavaScript Synopsis

public lz.rpc extends  LzNode  {
  public var autoload  : boolean;
  private var _loadDel  : Object;
  public read-only var proxy  : Object;
  private var _registered  : Object;
  public var secure  : boolean;
  public var secureport  : Number;
  private var _unloadDel  : Object;
  private var _verifywithproxy  : boolean;
  prototype private function init ();
  prototype public function load ();
  prototype private function _load (o);
  prototype public event ondata ;
  prototype public event onerror ;
  prototype public event onload ;
  prototype public event onunload ;
  prototype private function _register (callcontext, funcname);
  prototype private function _setup (o : Object);
  prototype public function unload ();
  prototype private function _unload (o);
}