コード例 #1
0
 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 RequestShell();
         request.request(session, this);
     }
     catch            //(Exception e)
     {
         throw new JSchException("ChannelShell");
     }
     thread = new Thread(this);
     thread.setName("Shell for " + session.host);
     thread.start();
 }
コード例 #2
0
ファイル: ChannelShell.cs プロジェクト: soywiz/csharputils
		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 RequestShell();
				request.request(session, this);
			}
			catch//(Exception e)
			{
				throw new JSchException("ChannelShell");
			}
			thread=new System.Threading.Thread(this.run);
			thread.Name = "Shell for "+session.host;
			thread.Start();
		}
コード例 #3
0
 public override void start()
 {
     try
     {
         Request request;
         if(xforwading)
         {
             request=new RequestX11();
             request.request(session, this);
         }
         request=new RequestPtyReq();
         request.request(session, this);
         request=new RequestShell();
         request.request(session, this);
     }
     catch//(Exception e)
     {
     }
     thread=new Thread(new ThreadStart(this.run));
     thread.Start();
 }