On 12/29/2009 03:55 AM, Paul Michael Reilly wrote: ... > In the course of writing some test code to determine what the actual > behavior is (as opposed to what it should be --- there is no spec at > this level as far as I can determine) the question arose in my mind: > can a Channel object be opened, connected, disconnected and closed > multiple times within a single Session object? I will follow up with my > experimental results soon.
And the answer is ... absolutely. In my test application I create a Session with multiple long lived local and remote port forwards running. Every minute, a new ChannelExec object is created in the Session. The command (date, fwiw) is executed on the host system as a watch-dog timer check. This ChannelExec output is read and logged after which the ChannelExec is disconnected, returning to the initial state. Sixty seconds later the sequence is repeated. -pmr ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users