com.sshtools.daemon

Class SshServer


public abstract class SshServer
extends java.lang.Object

Version:
$Revision: 1.18 $
Author:
$author$

Field Summary

protected List
activeConnections

Constructor Summary

SshServer()
Creates a new SshServer object.

Method Summary

protected abstract void
configureServices(ConnectionProtocol connection)
protected TransportProtocolServer
createSession(Socket socket)
protected void
processCommand(int command, Socket client)
protected void
refuseSession(Socket socket)
protected abstract void
shutdown(String msg)
protected void
startCommandSocket()
void
startServer()
protected void
startServerSocket()
void
stopServer(String msg)

Field Details

activeConnections

protected List activeConnections

Constructor Details

SshServer

public SshServer()
            throws IOException
Creates a new SshServer object.

Method Details

configureServices

protected abstract void configureServices(ConnectionProtocol connection)
            throws IOException
Parameters:
connection -

createSession

protected TransportProtocolServer createSession(Socket socket)
            throws IOException
Parameters:
socket -
Returns:

processCommand

protected void processCommand(int command,
                              Socket client)
            throws IOException
Parameters:
command -
client -

refuseSession

protected void refuseSession(Socket socket)
            throws IOException
Parameters:
socket -

shutdown

protected abstract void shutdown(String msg)
Parameters:
msg -

startCommandSocket

protected void startCommandSocket()
            throws IOException

startServer

public void startServer()
            throws IOException

startServerSocket

protected void startServerSocket()
            throws IOException

stopServer

public void stopServer(String msg)
            throws IOException
Parameters:
msg -

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.