anon.tor
Class FirstOnionRouterConnectionThread

java.lang.Object
  extended by anon.tor.FirstOnionRouterConnectionThread
All Implemented Interfaces:
java.lang.Runnable

public class FirstOnionRouterConnectionThread
extends java.lang.Object
implements java.lang.Runnable


Field Summary
private  java.lang.Exception m_exception
           
private  java.lang.String m_name
           
private  java.lang.Object m_oNotifySync
           
private  int m_port
           
private  ImmutableProxyInterface m_proxyInterface
           
private  java.lang.Thread m_thread
           
private  long m_timeout
           
private  TinyTLS m_tls
           
 
Constructor Summary
FirstOnionRouterConnectionThread(java.lang.String name, int port, long timeout, ImmutableProxyInterface a_ProxyInterface)
          Constructor
 
Method Summary
 TinyTLS getConnection()
          gets a TinyTLS connection if no timeout is reached
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_tls

private TinyTLS m_tls

m_thread

private java.lang.Thread m_thread

m_name

private java.lang.String m_name

m_port

private int m_port

m_timeout

private long m_timeout

m_exception

private java.lang.Exception m_exception

m_oNotifySync

private java.lang.Object m_oNotifySync

m_proxyInterface

private ImmutableProxyInterface m_proxyInterface
Constructor Detail

FirstOnionRouterConnectionThread

public FirstOnionRouterConnectionThread(java.lang.String name,
                                        int port,
                                        long timeout,
                                        ImmutableProxyInterface a_ProxyInterface)
Constructor

Parameters:
name - host
port - port
timeout - timeout
a_ProxyInterface - a proxy interface
Method Detail

getConnection

public TinyTLS getConnection()
                      throws java.io.IOException
gets a TinyTLS connection if no timeout is reached

Returns:
on succes : a tinytls connection on timeout : null
Throws:
java.io.IOException

run

public void run()
Specified by:
run in interface java.lang.Runnable