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

2019-04-07 Thread Glyph
> On Apr 6, 2019, at 10:12 AM, Sereysethy TOUCH > wrote: > > Hi Jean-Paul, > > No I dont want it to be mixed with stdout stream, it should be separated from > normal stdout, so that I know it is an error. > > To be honest, I am pretty to new to Twisted concept, there are things that I > ha

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

2019-04-06 Thread Sereysethy TOUCH
Hi Jean-Paul, No I dont want it to be mixed with stdout stream, it should be separated from normal stdout, so that I know it is an error. To be honest, I am pretty to new to Twisted concept, there are things that I have not familiar with yet. Actually I can also implement a low level ssh client (

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 t

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 wh

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, 2