MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / start

Method start

java/com/jcraft/jsch/ChannelSubsystem.java:41–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 public void setWantReply(boolean foo){ want_reply=foo; }
40 public void setSubsystem(String foo){ subsystem=foo; }
41 public void start() throws JSchException{
42 Session _session=getSession();
43 try{
44 Request request;
45 if(xforwading){
46 request=new RequestX11();
47 request.request(_session, this);
48 }
49 if(pty){
50 request=new RequestPtyReq();
51 request.request(_session, this);
52 }
53 request=new RequestSubsystem();
54 ((RequestSubsystem)request).request(_session, this, subsystem, want_reply);
55 }
56 catch(Exception e){
57 if(e instanceof JSchException){ throw (JSchException)e; }
58 if(e instanceof Throwable)
59 throw new JSchException("ChannelSubsystem", (Throwable)e);
60 throw new JSchException("ChannelSubsystem");
61 }
62 if(io.in!=null){
63 thread=new Thread(this);
64 thread.setName("Subsystem for "+_session.host);
65 if(_session.daemon_thread){
66 thread.setDaemon(_session.daemon_thread);
67 }
68 thread.start();
69 }
70 }
71
72 void init() throws JSchException {
73 io.setInputStream(getSession().in);

Callers

nothing calls this directly

Calls 4

requestMethod · 0.95
getSessionMethod · 0.45
requestMethod · 0.45
setNameMethod · 0.45

Tested by

no test coverage detected