public override void start() { try { Request request; if (xforwading) { request = new RequestX11(); request.request(session, this); } if (pty) { request = new RequestPtyReq(); request.request(session, this); } request = new RequestSubsystem(); ((RequestSubsystem)request).request(session, this, subsystem, want_reply); } catch (Exception e) { if (e is JSchException) { throw (JSchException)e; } throw new JSchException("ChannelSubsystem"); } System.Threading.Thread thread = new System.Threading.Thread(this.run); thread.Name = "Subsystem for " + session.host; thread.Start(); }
public override void start() { try { Request request; if(xforwading) { request=new RequestX11(); request.request(session, this); } if(pty) { request=new RequestPtyReq(); request.request(session, this); } request=new RequestSubsystem(); ((RequestSubsystem)request).request(session, this, subsystem, want_reply); } catch(Exception e) { if(e is JSchException){ throw (JSchException)e; } throw new JSchException("ChannelSubsystem"); } Thread thread=new Thread(this); thread.setName("Subsystem for "+session.host); thread.start(); }