Enables the J2SSH application framework to execute threads in the context of a given session.
470471472473474475476477478
this.provider = provider; this.properties = properties; // Start the transport layer message loop log.info("Starting transport protocol"); thread = new SshThread(this, "Transport protocol", true); thread.start(); onStartTransportProtocol(); }
7778798081828384858687
protected void onStart() throws IOException { if (Thread.currentThread() instanceof SshThread) { thread = ((SshThread) Thread.currentThread()).cloneThread(this, getServiceName()); } else { thread = new SshThread(this, getServiceName(), true); } log.info("Starting " + getServiceName() + " service thread"); thread.start(); }