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
 
process_proxy_options(self)
Override this method to incorporate elements from proxy_options into actual proxy subprocess execution.
source code
instance
start_proxy(self)
Start the thread runner and wait for the proxy to come up.
source code

Inherited from base.X2goProxyBASE: __del__, ok, run, stop_thread

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, is_alive, join, 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 threading.Thread: daemon, ident, name

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__

process_proxy_options(self)

source code 

Override this method to incorporate elements from proxy_options into actual proxy subprocess execution.

This method (if overridden) should (by design) never fail nor raise an exception. Make sure to catch all possible errors appropriately.

If you want to log ignored proxy_options then

  1. remove processed proxy_options from self.proxy_options
  2. once you have finished processing the proxy_options call the parent class method X2goProxyBASE.process_proxy_options()
Overrides: base.X2goProxyBASE.process_proxy_options
(inherited documentation)

start_proxy(self)

source code 

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

Returns: instance
a subprocess instance that knows about the externally started proxy command.
Overrides: base.X2goProxyBASE.start_proxy
(inherited documentation)