Home | Trees | Index | Help |
---|
Package paramiko :: Class SubsystemHandler |
|
object
--+ |_Verbose
--+ |Thread
--+ | SubsystemHandler
SFTPServer
Handler for a subsytem in server mode. If you create a subclass of
this class and pass it to Transport.set_subsystem_handler
, an object
of this class will be created for each request for this subsystem. Each
new object will be executed within its own new thread by calling start_subsystem
. When that method
completes, the channel is closed.
MP3Handler
and
registered it as the handler for subsystem "mp3"
,
then whenever a client has successfully authenticated and requests
subsytem "mp3"
, an object of class
MP3Handler
will be created, and start_subsystem
will be called on it from a
new thread.
Since: ivysaur
Method Summary | |
---|---|
Create a new handler for a channel. | |
Perform any cleanup at the end of a subsystem. | |
ServerInterface
|
Return the ServerInterface object associated with this
channel and subsystem. |
Process an ssh subsystem in server mode. | |
_run(self)
| |
Inherited from Thread | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from _Verbose | |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
Inherited from Thread | |
bool |
_Thread__initialized = False
|
Method Details |
---|
__init__(self,
channel,
name,
server)
Create a new handler for a channel. This is used by |
finish_subsystem(self)Perform any cleanup at the end of a subsystem. The default implementation just closes the channel.
|
get_server(self)Return theServerInterface object associated with
this channel and subsystem.
|
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 oftransport and channel
are unique; this handler corresponds to exactly one Channel on one Transport .
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | http://epydoc.sf.net |