The last if(channel.exitstatus!=-1) is empty. Is something missing?

Thanks,

Dave

public void run(){
    thread=this;
    try{
      while(thread!=null){
        Socket socket=ss.accept();
                socket.setTcpNoDelay(true);
        InputStream in=socket.getInputStream();
        OutputStream out=socket.getOutputStream();
        ChannelDirectTCPIP channel=new ChannelDirectTCPIP();
        channel.init();
        channel.setInputStream(in);
        channel.setOutputStream(out);
                session.addChannel(channel);
                ((ChannelDirectTCPIP)channel).setHost(host);
                ((ChannelDirectTCPIP)channel).setPort(rport);
                
((ChannelDirectTCPIP)channel).setOrgIPAddress(socket.getInetAddress().getHostAddress());
                ((ChannelDirectTCPIP)channel).setOrgPort(socket.getPort());
        channel.connect();
                if(channel.exitstatus!=-1){
                }
      }
    }
    catch(Exception e){
      //System.err.println("! "+e);
    }

    delete();
  }

David Walend
The MathWorks
[email protected]

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to