org.xvsm.lookup.gnutella
Class GnutellaServer

Package class diagram package GnutellaServer
java.lang.Object
  extended by org.xvsm.lookup.gnutella.GnutellaServer

public class GnutellaServer
extends java.lang.Object

Gnutella-Server, which provides the peers with lists of other peers.

Author:
Hannu-Daniel Goiss

Field Summary
 java.util.ArrayList<java.net.SocketAddress> peers
           
 
Constructor Summary
GnutellaServer(int port)
          constructor, which starts the Server at a port specified by the parameter port.
 
Method Summary
static void main(java.lang.String[] args)
          main function to start the Server usage: GnutellaServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

peers

public java.util.ArrayList<java.net.SocketAddress> peers
Constructor Detail

GnutellaServer

public GnutellaServer(int port)
               throws java.io.IOException,
                      java.lang.ClassNotFoundException
constructor, which starts the Server at a port specified by the parameter port. This function handles all the incoming requests of the peers.

Parameters:
port -
Throws:
java.io.IOException
java.lang.ClassNotFoundException
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
main function to start the Server usage: GnutellaServer

Parameters:
args -
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright © 2009. All Rights Reserved.