public abstract class SshServer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
activeConnections |
Constructor and Description |
---|
SshServer()
Creates a new SshServer object.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
configureServices(ConnectionProtocol connection) |
protected TransportProtocolServer |
createSession(java.net.Socket socket) |
protected void |
processCommand(int command,
java.net.Socket client) |
protected void |
refuseSession(java.net.Socket socket) |
protected abstract void |
shutdown(java.lang.String msg) |
protected void |
startCommandSocket() |
void |
startServer() |
protected void |
startServerSocket() |
void |
stopServer(java.lang.String msg) |
public SshServer() throws java.io.IOException
java.io.IOException
SshException
public void startServer() throws java.io.IOException
java.io.IOException
protected void processCommand(int command, java.net.Socket client) throws java.io.IOException
command
- client
- java.io.IOException
protected void startCommandSocket() throws java.io.IOException
java.io.IOException
protected void startServerSocket() throws java.io.IOException
java.io.IOException
public void stopServer(java.lang.String msg) throws java.io.IOException
msg
- java.io.IOException
protected abstract void shutdown(java.lang.String msg)
msg
- protected abstract void configureServices(ConnectionProtocol connection) throws java.io.IOException
connection
- java.io.IOException
protected void refuseSession(java.net.Socket socket) throws java.io.IOException
socket
- java.io.IOException
protected TransportProtocolServer createSession(java.net.Socket socket) throws java.io.IOException
socket
- java.io.IOException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.