Logo Search packages:      
Sourcecode: paramiko version File versions  Download package

def paramiko::transport::Transport::set_subsystem_handler (   self,
  name,
  handler,
  larg,
  kwarg 
)

Set the handler class for a subsystem in server mode.  If a request
for this subsystem is made on an open ssh channel later, this handler
will be constructed and called -- see L{SubsystemHandler} for more
detailed documentation.

Any extra parameters (including keyword arguments) are saved and
passed to the L{SubsystemHandler} constructor later.

@param name: name of the subsystem.
@type name: str
@param handler: subclass of L{SubsystemHandler} that handles this
    subsystem.
@type handler: class

Definition at line 858 of file transport.py.

00858                                                                   :
        """
        Set the handler class for a subsystem in server mode.  If a request
        for this subsystem is made on an open ssh channel later, this handler
        will be constructed and called -- see L{SubsystemHandler} for more
        detailed documentation.

        Any extra parameters (including keyword arguments) are saved and
        passed to the L{SubsystemHandler} constructor later.

        @param name: name of the subsystem.
        @type name: str
        @param handler: subclass of L{SubsystemHandler} that handles this
            subsystem.
        @type handler: class
        """
        try:
            self.lock.acquire()
            self.subsystem_table[name] = (handler, larg, kwarg)
        finally:
            self.lock.release()
    
    def is_authenticated(self):


Generated by  Doxygen 1.6.0   Back to index