oogp2p
Class ConnectionAdministrator
java.lang.Object
oogp2p.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myConnections
private java.util.Vector myConnections
ConnectionAdministrator
public ConnectionAdministrator()
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)