qubx :: remote_ctl :: RemoteProxy :: Class RemoteProxy
[hide private]
[frames] | no frames]

Class RemoteProxy

source code

object --+
         |
        RemoteProxy

Client for RemoteServer. (block, timeout) in methods are the same as in module Queue.

Instance Methods [hide private]
 
__init__(self, host='127.0.0.1', port=55384, sockid_path=None)
Connects to the server.
source code
 
reval(self, expr, block=True, timeout=None)
Evaluates expr on the remote side, returns the result as a string.
source code
 
rexec(self, buf, block=True, timeout=None)
Executes the Python script in buf on the remote side.
source code
 
set_array(self, arr, label, block=True, timeout=None)
Sends a numpy.array to the remote side, and assigns it to the remote identifier label.
source code
 
get_array(self, label, block=True, timeout=None)
Loads a numpy.array from the remote side, with the remote name label.
source code
 
__check_error(self, block=True, timeout=None) source code
 
stop(self)
Closes the connection to RemoteServer.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, host='127.0.0.1', port=55384, sockid_path=None)
(Constructor)

source code 

Connects to the server. Uses the port number in sockid_path, if it exists.

Overrides: object.__init__

reval(self, expr, block=True, timeout=None)

source code 

Evaluates expr on the remote side, returns the result as a string. Can raise RemoteError.

rexec(self, buf, block=True, timeout=None)

source code 

Executes the Python script in buf on the remote side. Can raise RemoteError.

get_array(self, label, block=True, timeout=None)

source code 

Loads a numpy.array from the remote side, with the remote name label. Can raise RemoteError.