anon.tor
Class FirstOnionRouterConnectionFactory

java.lang.Object
  extended by anon.tor.FirstOnionRouterConnectionFactory

public class FirstOnionRouterConnectionFactory
extends java.lang.Object


Field Summary
private  java.util.Vector m_firstOnionRouters
           
private  Tor m_Tor
           
 
Constructor Summary
FirstOnionRouterConnectionFactory(Tor a_Tor)
          constructor
 
Method Summary
 void closeAll()
          Closes all connections to all FirstOnionRouters
 FirstOnionRouterConnection createFirstOnionRouterConnection(ORDescriptor d)
          creates a FOR with the given description if it doesn't exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_firstOnionRouters

private java.util.Vector m_firstOnionRouters

m_Tor

private Tor m_Tor
Constructor Detail

FirstOnionRouterConnectionFactory

public FirstOnionRouterConnectionFactory(Tor a_Tor)
constructor

Parameters:
a_Tor - a tor instance
Method Detail

createFirstOnionRouterConnection

public FirstOnionRouterConnection createFirstOnionRouterConnection(ORDescriptor d)
creates a FOR with the given description if it doesn't exist. else it returns a existing FOR

Parameters:
d - description of a FOR
Returns:
FirstOnionRouter

closeAll

public void closeAll()
Closes all connections to all FirstOnionRouters