[Twisted-Python] [twisted-conch] Building own Channels

Paul Swartz z3p at twistedmatrix.com
Thu Aug 14 12:21:09 MDT 2003


On Thu, Aug 14, 2003 at 07:35:27PM +0200, mkimpenhaus at plus.de wrote:
> How do I implement own channels with own names?

If you want to use a channel with a different name, you need to tell the
server and the client that it's a valid channel-name.  Currently, the
only valid ones are session (executing a shell or a command), direct-tcp
(local->remote TCP forwarding) and forward-tcp (remote->local TCP
forwarding.  If you want to implement a different type of channel, the
method you'll want to look at it is
twisted.conch.ssh.connection.SSHConnection.getChannel, and the channel_*
methods.  You probably should take a look at the SSH Connection Protocol
I-D as well.

-p
-- 
       Paul Swartz
(o_    http://www.twistedmatrix.com/users/z3p.twistd/  _o)
//\    z3p at twistedmatrix.com                           /\\
V_/_   AIM: z3penguin                                 _\_V->




More information about the Twisted-Python mailing list