Package paramiko :: Module sftp_server :: Class SFTPServer
[show private | hide private]
[frames | no frames]

Type SFTPServer

object --+            
         |            
  _Verbose --+        
             |        
        Thread --+    
                 |    
  SubsystemHandler --+
                     |
        object --+   |
                 |   |
          BaseSFTP --+
                     |
                    SFTPServer


Method Summary
  __init__(self, channel, name)
  _open_folder(self, request_number, path)
  _process(self, t, request_number, msg)
  _read_folder(self, request_number, folder)
  _response(self, request_number, t, *arg)
  _send_handle_response(self, request_number, handle, folder)
  _send_status(self, request_number, code, desc)
  start_subsystem(self, name, transport, channel)
Process an ssh subsystem in server mode.
    Inherited from BaseSFTP
  _log(self, level, msg)
  _read_all(self, n)
  _read_packet(self)
  _send_packet(self, t, packet)
  _send_server_version(self)
  _send_version(self)
  _write_all(self, out)
    Inherited from SubsystemHandler
  _run(self)
    Inherited from Thread
  __repr__(self)
  getName(self)
  isAlive(self)
  isDaemon(self)
  join(self, timeout)
  run(self)
  setDaemon(self, daemonic)
  setName(self, name)
  start(self)
  _set_daemon(self)
    Inherited from _Verbose
  _note(self, format, *args)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
    Inherited from Thread
bool _Thread__initialized = False

Method Details

start_subsystem(self, name, transport, channel)

Process an ssh subsystem in server mode. This method is called on a new object (and in a new thread) for each subsystem request. It is assumed that all subsystem logic will take place here, and when the subsystem is finished, this method will return. After this method returns, the channel is closed.

The combination of transport and channel are unique; this handler corresponds to exactly one Channel on one Transport.
Parameters:
name - name of the requested subsystem.
           (type=str)
transport - the server-mode Transport.
           (type=Transport)
channel - the channel associated with this subsystem request.
           (type=Channel)
Overrides:
paramiko.server.SubsystemHandler.start_subsystem (inherited documentation)

Note: It is the responsibility of this method to exit if the underlying Transport is closed. This can be done by checking Transport.is_active or noticing an EOF on the Channel. If this method loops forever without checking for this case, your python interpreter may refuse to exit because this thread will still be running.


Generated by Epydoc 2.1 on Sat Oct 23 00:28:19 2004 http://epydoc.sf.net