de.knup.jedi.jayshare.FileTransfer
Class HeiseFTPServer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--de.knup.jedi.jayshare.FileTransfer.Server
              |
              +--de.knup.jedi.jayshare.FileTransfer.HeiseFTPServer

public class HeiseFTPServer
extends Server

FTP (RFC 959) Server written by Ryan Heise.


Field Summary
static java.lang.String VERSION
          The version number of jftpd.
 
Fields inherited from class de.knup.jedi.jayshare.FileTransfer.Server
addr, port
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadQ, values
 
Constructor Summary
HeiseFTPServer(java.net.InetAddress addr, int port)
          Create an FTP server to run on the specified port.
 
Method Summary
 void run()
          Starts the FTP server.
 void service(java.net.Socket socket)
          Handle a client connection.
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
The version number of jftpd.
Constructor Detail

HeiseFTPServer

public HeiseFTPServer(java.net.InetAddress addr,
                      int port)
Create an FTP server to run on the specified port.
Method Detail

run

public void run()
Starts the FTP server. This method listens for connections on the FTP server port and spawns a new thread to handle each connection.
Overrides:
run in class java.lang.Thread

service

public void service(java.net.Socket socket)
             throws java.lang.Exception
Handle a client connection. This may be called directly by a superserver instead of start().
Parameters:
socket - the client socket.