Package x2go :: Package backends :: Package proxy :: Module _nx3 :: Class X2GoProxyNX3
[frames] | no frames]

Class X2GoProxyNX3

source code

        object --+            
                 |            
threading._Verbose --+        
                     |        
      threading.Thread --+    
                         |    
        base.X2GoProxyBASE --+
                             |
                            X2GoProxyNX3

X2GoNX3Proxy is a NX version 3 based X2Go proxy connection class.

It basically fills X2GoProxyBASE variables with sensible content. Its methods mostly wrap around the corresponding methods of the parent class.

Instance Methods
 
__init__(self, *args, **kwargs)
For available parameters refer to X2GoProxyBASE class documentation.
source code
obj
start_proxy(self)
Start the thread runner and wait for the proxy to come up.
source code

Inherited from base.X2GoProxyBASE: __del__, ok, process_proxy_options, run, stop_thread

Inherited from threading.Thread: __repr__, daemon, getName, ident, isAlive, isDaemon, is_alive, join, name, setDaemon, setName, start

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

Class Variables

Inherited from base.X2GoProxyBASE: PROXY_ARGS, PROXY_CMD, PROXY_ENV, fw_tunnel, proxy, session_info, session_log_stderr, session_log_stdout

Properties

Inherited from object: __class__

Method Details

__init__(self, *args, **kwargs)
(Constructor)

source code 

For available parameters refer to X2GoProxyBASE class documentation.

Parameters:
  • session_info - session information provided as an X2GoServerSessionInfo* backend instance
  • ssh_transport - SSH transport object from paramiko.SSHClient
  • session_log - name of the proxy's session logfile
  • sessions_rootdir - base dir where X2Go session files are stored (by default: ~/.x2go)
  • proxy_options - a set of very X2GoProxy* backend specific options; any option that is not known to the X2GoProxy* backend will simply be ignored
  • logger - you can pass an X2GoLogger object to the X2GoProxy constructor
  • session_instance - the X2GoSession instance this X2GoProxy* instance belongs to
  • loglevel - if no X2GoLogger object has been supplied a new one will be constructed with the given loglevel
Overrides: object.__init__

start_proxy(self)

source code 

Start the thread runner and wait for the proxy to come up.

Returns: obj
a subprocess instance that knows about the externally started proxy command.
Overrides: base.X2GoProxyBASE.start_proxy