oogp2p
Class ConnectionAdministrator

java.lang.Object
  extended byoogp2p.ConnectionAdministrator

public class ConnectionAdministrator
extends java.lang.Object

Author:
OOGs To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
private  java.util.Vector myConnections
           
 
Constructor Summary
ConnectionAdministrator()
           
 
Method Summary
 void addConnection(Connection c)
           
 void broadcastToAll(Nettable n)
           
 boolean connectedTo(java.net.InetAddress inetAddr)
          Checks to see if already connected to a given Server
 Connection getConnection(java.net.InetAddress inetAddr)
          Returns the Connection object that is connected to the given InetAddress
 boolean removeConnection(Connection c)
           
 boolean removeConnection(java.net.InetAddress ip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myConnections

private java.util.Vector myConnections
Constructor Detail

ConnectionAdministrator

public ConnectionAdministrator()
Method Detail

addConnection

public void addConnection(Connection c)

removeConnection

public boolean removeConnection(Connection c)

removeConnection

public boolean removeConnection(java.net.InetAddress ip)

getConnection

public Connection getConnection(java.net.InetAddress inetAddr)
Returns the Connection object that is connected to the given InetAddress


connectedTo

public boolean connectedTo(java.net.InetAddress inetAddr)
Checks to see if already connected to a given Server


broadcastToAll

public void broadcastToAll(Nettable n)