[Twisted-Python] Conch as a file transfer server

Jonathan Lange jml at mumak.net
Sun Nov 7 05:12:17 MST 2010


On Sun, Nov 7, 2010 at 12:09 PM, Laurens Van Houtven <lvh at laurensvh.be> wrote:
> Okay, tried to learn something out of that. If I understand correctly
> SSHSession is the low-level thing that actually handles SSH-specific
> gunk, and ISession is the customizable thing. File transfer was
> implemented separately. When something wants file transfer, Conch
> tries to adapt the avatar to ISFTPServer instead of ISession. Is that
> right?
>

Yeah, that sounds right, although I'm not going to look up the code to
double check.

You want the ISession around to handle non-SFTP connections: shell
requests, command exec etc.

jml




More information about the Twisted-Python mailing list