com.sshtools.daemon
Class SshServer

java.lang.Object
  extended by com.sshtools.daemon.SshServer

public abstract class SshServer
extends java.lang.Object

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

Field Summary
protected  java.util.List activeConnections
           
 
Constructor Summary
SshServer()
          Creates a new SshServer object.
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activeConnections

protected java.util.List activeConnections
Constructor Detail

SshServer

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

Throws:
java.io.IOException
SshException
Method Detail

startServer

public void startServer()
                 throws java.io.IOException
Throws:
java.io.IOException

processCommand

protected void processCommand(int command,
                              java.net.Socket client)
                       throws java.io.IOException
Parameters:
command -
client -
Throws:
java.io.IOException

startCommandSocket

protected void startCommandSocket()
                           throws java.io.IOException
Throws:
java.io.IOException

startServerSocket

protected void startServerSocket()
                          throws java.io.IOException
Throws:
java.io.IOException

stopServer

public void stopServer(java.lang.String msg)
                throws java.io.IOException
Parameters:
msg -
Throws:
java.io.IOException

shutdown

protected abstract void shutdown(java.lang.String msg)
Parameters:
msg -

configureServices

protected abstract void configureServices(ConnectionProtocol connection)
                                   throws java.io.IOException
Parameters:
connection -
Throws:
java.io.IOException

refuseSession

protected void refuseSession(java.net.Socket socket)
                      throws java.io.IOException
Parameters:
socket -
Throws:
java.io.IOException

createSession

protected TransportProtocolServer createSession(java.net.Socket socket)
                                         throws java.io.IOException
Parameters:
socket -
Returns:
Throws:
java.io.IOException


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