Re: [Twisted-Python] Conch as a file transfer server

2010-11-07 Thread Laurens Van Houtven
If I understand correctly, the avatar knows about requestable subsystems, and SSHSession is the low-level magic required to make them work. lvh ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/lis

Re: [Twisted-Python] Conch as a file transfer server

2010-11-07 Thread Andrew Bennetts
Jonathan Lange wrote: > On Sun, Nov 7, 2010 at 12:09 PM, Laurens Van Houtven > 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

Re: [Twisted-Python] Conch as a file transfer server

2010-11-07 Thread Jonathan Lange
On Sun, Nov 7, 2010 at 12:09 PM, Laurens Van Houtven 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. Whe

Re: [Twisted-Python] Conch as a file transfer server

2010-11-07 Thread Laurens Van Houtven
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 I

Re: [Twisted-Python] Conch as a file transfer server

2010-11-06 Thread Jonathan Lange
On Sat, Nov 6, 2010 at 1:28 AM, Laurens Van Houtven wrote: ... > > Ideally, does anyone have any code somewhere that actually serves a file? > I don't have minimal code, but in the Launchpad tree there are two SFTP servers, written with Conch. $ bzr co lp:launchpad Look in lib/lp/services/sshser

[Twisted-Python] Conch as a file transfer server

2010-11-05 Thread Laurens Van Houtven
Hi! I've figured out vaguely how to use Conch as a file transfer client thanks to the cftp script. I'm currently trying to adapt the simple SSH server script example (link below) to do file *serving*. I can't find any example code that actually does this or documentation on this subject. There's