|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rheise.jftpd.Server
This is the main class for jftpd. It creates the server socket and loops forever accepting user connections and creating ServerPI threads to handle them.
To run under unix, type:
java rheise.jftpd.Server
Field Summary | |
private int |
port
The port this server is listening on. |
static int |
SERVER_DATA_PORT
The default data port. |
static int |
SERVER_PORT
The port this server connects to. |
static java.lang.String |
VERSION
The version number of jftpd. |
Constructor Summary | |
Server(java.util.Properties properties)
Create an FTP server to run on port 21. |
|
Server(java.util.Properties properties,
int port)
Create an FTP server to run on the specified port. |
Method Summary | |
private void |
configure(java.util.Properties properties)
Configures the ftp server from the configuration properties. |
static void |
main(java.lang.String[] args)
|
void |
service(java.net.Socket socket)
Handle a client connection. |
private void |
start()
Starts the FTP server. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final java.lang.String VERSION
public static final int SERVER_PORT
public static final int SERVER_DATA_PORT
private int port
Constructor Detail |
public Server(java.util.Properties properties) throws ParseException
public Server(java.util.Properties properties, int port) throws ParseException
Method Detail |
public static void main(java.lang.String[] args) throws java.lang.Exception
private void start() throws java.lang.Exception
public void service(java.net.Socket socket) throws java.lang.Exception
socket
- the client socket.private void configure(java.util.Properties properties) throws ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |