상속: Request
예제 #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();
 }
        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 RequestExec(command);
                request.request(session, this);
            }
            catch (Exception e)
            {
                throw new JSchException("ChannelExec");
            }
            thread = new Thread(this);
            thread.setName("Exec thread " + session.getHost());
            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 RequestExec(command);
				request.request(session, this);
			}
			catch(Exception e)
			{
				throw new JSchException("ChannelExec");
			}
			thread=new Thread(this);
			thread.setName("Exec thread "+session.getHost());
			thread.start();
		}
예제 #4
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 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();
 }
예제 #5
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 System.Threading.Thread(this.run);
			thread.Name = "Shell for "+session.host;
			thread.Start();
		}
예제 #6
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 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();
		}
예제 #7
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();
 }
예제 #8
0
 public override void start()
 {
     try
     {
         Request request;
         if(xforwading)
         {
             request=new RequestX11();
             request.request(session, this);
         }
         request=new RequestExec(command);
         //((RequestExec)request).setCommand(command);
         request.request(session, this);
     }
     catch//(Exception e)
     {
     }
     thread=new Thread( new ThreadStart( this.run ));
     thread.Start();
 }