I'm working on a readline additions to myPipeStream. 

            channel = (ChannelShell) session.openChannel("shell");
            channel.setPtyType("vt100");
            
     
            in = channel.getInputStream();
            out =  new OutputStreamWriter( this.channel.getOutputStream());
            
            channel.connect(3000);

Will all reads from in.read() block until more data is received on the channel.


if in.read() blocks, should myPipeStream have a non blocking read mode.
void setNonBlockMode(true);
public int read(){ 
 if (nonBlockMode){
     if (in.available()<1) { 
                retrun null;
      }
    Return this.read();
  }
}
Should all in.read() Block?

Nicholas A. Schembri
State College PA USA




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to