gateway
Class ServerFTP

java.lang.Object
  |
  +--gateway.ServerFTP

public class ServerFTP
extends Object

It is the Main-Class of the Gateway agent. It Acceps sockets connectons from remote clients to permit file transfer.

See Also:
Server, NOTE: it does not accept the JAR if there is another JAR with the same name in the pool of agents.

Field Summary
static int SERVER_PORT
          Port number.
 
Constructor Summary
ServerFTP()
           
 
Method Summary
static void main(String[] args)
          Starts the Gateway agent
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_PORT

public static final int SERVER_PORT
Port number. The Gateway acceps sockets connectons from remote clients through this port number.
Constructor Detail

ServerFTP

public ServerFTP()
Method Detail

run

public void run()
         throws Throwable

main

public static void main(String[] args)
                 throws Throwable,
                        Exception
Starts the Gateway agent