Re: [Twisted-Python] how to get extReceived call from SSHCommandClientEndpoint

2019-04-05 Thread Jean-Paul Calderone
On Fri, Apr 5, 2019 at 2:08 PM Sereysethy TOUCH wrote: > Hi Sean, > > Yes it is a method of SSHChannel, but when I read the source code, the > _CommandChannel only implements dataReceived which calls protocol's method > but it does not implement extReceived. > > When you suggest to call it like

Re: [Twisted-Python] how to get extReceived call from SSHCommandClientEndpoint

2019-04-05 Thread Sereysethy TOUCH
Hi Sean, Yes it is a method of SSHChannel, but when I read the source code, the _CommandChannel only implements dataReceived which calls protocol's method but it does not implement extReceived. When you suggest to call it like that (self.transport.conn.channels[0].extReceived()), how do I know

Re: [Twisted-Python] how to get extReceived call from SSHCommandClientEndpoint

2019-04-05 Thread Sean DiZazzo
It looks like extReceived() is a method of SSHSession.Channel.SSHChannel . You can access it through the protocol's transport. self.transport.conn.channels[0].extReceived() ~Sean On Fri, Apr 5,

[Twisted-Python] how to get extReceived call from SSHCommandClientEndpoint

2019-04-05 Thread Sereysethy TOUCH
Hello, I am implementing a program using SSHCommandClientEndpoint, the program works fine (dataReceived got calls) but when the server send an error message (stderr..), the function extReceived in my protocol never gets called, instead it only calls the one in the SSHChannel as I can see in the