|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.client.AnonClient
public class AnonClient
Nested Class Summary | |
---|---|
private static interface |
AnonClient.StatusThread
|
Fields inherited from interface anon.AnonService |
---|
ANONLIB_VERSION |
Constructor Summary | |
---|---|
AnonClient()
|
|
AnonClient(java.net.Socket a_connectedSocket)
|
Method Summary | |
---|---|
void |
addEventListener(AnonServiceEventListener a_eventListener)
Adds an AnonServiceEventListener. |
private void |
closeSocketHandler()
|
private java.net.Socket |
connectMixCascade(MixCascade a_mixCascade,
ImmutableProxyInterface a_proxyInterface)
|
AnonChannel |
createChannel(int a_type)
Creates a new AnonChannel, which could be used for transmitting data. |
void |
dataChainErrorSignaled()
|
private int |
finishInitialization(Multiplexer a_multiplexer,
KeyExchangeManager a_keyExchangeManager,
IMutableProxyInterface a_proxyInterface,
PacketCounter a_packetCounter,
java.net.Socket a_connectedSocket,
IServiceContainer a_serviceContainer)
|
static int |
getLoginTimeout()
|
Pay |
getPay()
|
int |
initialize(AnonServerDescription a_mixCascade,
IServiceContainer a_serviceContainer)
Initializes this AnonService. |
private int |
initializeProtocol(java.net.Socket a_connectedSocket,
AnonServerDescription a_mixCascade,
IServiceContainer a_serviceContainer)
|
boolean |
isConnected()
Returns true if this Anon Service is connected, e.g. |
void |
removeEventListener(AnonServiceEventListener a_eventListener)
Removes an AnonServiceEventListener. |
void |
removeEventListeners()
|
void |
setDummyTraffic(int a_interval)
|
static void |
setLoginTimeout(int a_loginTimeoutMS)
|
void |
setPaymentProxy(IMutableProxyInterface a_paymentProxyInterface)
|
int |
setProxy(IMutableProxyInterface a_proxyInterface)
Sets the settings ofr the proxy, which should be used to establish network connections |
void |
shutdown()
Disconnects form the server. |
void |
update(java.util.Observable a_object,
java.lang.Object a_argument)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_LOGIN_TIMEOUT
private static final int CONNECT_TIMEOUT
private static final int CONNECTION_ERROR_WAIT_TIME
private static final int CONNECTION_ERROR_WAIT_COUNT
private static int m_loginTimeout
private Multiplexer m_multiplexer
private IMutableProxyInterface m_proxyInterface
private java.lang.Object m_internalSynchronization
private java.lang.Thread m_threadInitialise
private java.lang.Object SYNC_SHUTDOWN
private java.lang.Object m_internalSynchronizationForSocket
private java.lang.Object m_internalSynchronizationForDummyTraffic
private SocketHandler m_socketHandler
private java.util.Vector m_eventListeners
private PacketCounter m_packetCounter
private DummyTrafficControlChannel m_dummyTrafficControlChannel
private int m_dummyTrafficInterval
private KeyExchangeManager m_keyExchangeManager
private java.net.Socket m_connectedSocket
private Pay m_paymentInstance
private IMutableProxyInterface m_paymentProxyInterface
private boolean m_connected
private int m_connectionErrorCount
private long m_connectionErrorTime
private final java.lang.Object CONN_ERR_SYNC
Constructor Detail |
---|
public AnonClient()
public AnonClient(java.net.Socket a_connectedSocket)
Method Detail |
---|
public int initialize(AnonServerDescription a_mixCascade, IServiceContainer a_serviceContainer)
AnonService
initialize
in interface AnonService
a_mixCascade
- AnonServer to use
public static void setLoginTimeout(int a_loginTimeoutMS)
public static int getLoginTimeout()
public void setPaymentProxy(IMutableProxyInterface a_paymentProxyInterface)
public int setProxy(IMutableProxyInterface a_proxyInterface)
AnonService
setProxy
in interface AnonService
public void shutdown()
AnonService
shutdown
in interface AnonService
public boolean isConnected()
AnonService
isConnected
in interface AnonService
public AnonChannel createChannel(int a_type) throws java.net.ConnectException
AnonService
AnonChannel
for more information.
createChannel
in interface AnonService
a_type
- the type of the created channel
java.net.ConnectException
public void addEventListener(AnonServiceEventListener a_eventListener)
AnonService
AnonServiceEventListener
.
addEventListener
in interface AnonService
a_eventListener
- Listener to addpublic void removeEventListeners()
removeEventListeners
in interface AnonService
public void removeEventListener(AnonServiceEventListener a_eventListener)
AnonService
removeEventListener
in interface AnonService
a_eventListener
- Listener, which will be removedpublic void update(java.util.Observable a_object, java.lang.Object a_argument)
update
in interface java.util.Observer
public void dataChainErrorSignaled()
dataChainErrorSignaled
in interface DataChainErrorListener
public void setDummyTraffic(int a_interval)
public Pay getPay()
private java.net.Socket connectMixCascade(MixCascade a_mixCascade, ImmutableProxyInterface a_proxyInterface) throws java.io.InterruptedIOException
java.io.InterruptedIOException
private int initializeProtocol(java.net.Socket a_connectedSocket, AnonServerDescription a_mixCascade, IServiceContainer a_serviceContainer)
private int finishInitialization(Multiplexer a_multiplexer, KeyExchangeManager a_keyExchangeManager, IMutableProxyInterface a_proxyInterface, PacketCounter a_packetCounter, java.net.Socket a_connectedSocket, IServiceContainer a_serviceContainer)
private void closeSocketHandler()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |