|
|||||||||
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(IStreamConnection a_theConnection)
|
Method Summary | |
---|---|
void |
addEventListener(AnonServiceEventListener a_eventListener)
Adds an AnonServiceEventListener. |
private void |
closeSocketHandler()
|
void |
connectionEstablished(AnonServerDescription a_serverDescription)
|
private IStreamConnection |
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,
PacketCounter a_packetCounter,
IStreamConnection a_connection,
IServiceContainer a_serviceContainer,
MixCascade a_cascade)
|
private static int |
getInternalLoginTimeout(IServiceContainer a_serviceContainer)
|
static int |
getLoginTimeout()
|
int |
initialize(AnonServerDescription a_mixCascade,
IServiceContainer a_serviceContainer,
TermsAndConditionConfirmation termsConfirmation)
Initializes this AnonService. |
private int |
initializeProtocol(IStreamConnection a_connectionToMixCascade,
AnonServerDescription a_mixCascade,
IServiceContainer a_serviceContainer,
TermsAndConditionConfirmation termsConfirmation)
|
boolean |
isConnected()
Returns true if this Anon Service is connected, e.g. |
private void |
reconnect(java.lang.Object a_argument)
|
void |
removeEventListener(AnonServiceEventListener a_eventListener)
Removes an AnonServiceEventListener. |
void |
removeEventListeners()
|
private static void |
resetInternalLoginTimeout()
|
void |
setDummyTraffic(int a_interval)
|
static void |
setLoginTimeout(int a_loginTimeoutMS)
|
int |
setProxy(IMutableProxyInterface a_proxyInterface)
Sets the settings ofr the proxy, which should be used to establish network connections |
void |
shutdown(boolean a_bResetTransferredBytes)
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 |
---|
private static boolean ENABLE_CONTROL_CHANNEL_TEST
public static final int DEFAULT_LOGIN_TIMEOUT
private static final int FAST_LOGIN_TIMEOUT
private static final int CONNECT_TIMEOUT
private static int m_loginTimeout
private static int m_loginTimeoutFastAvailable
private Multiplexer m_multiplexer
private JobQueue m_queuePacketCount
private IMutableProxyInterface m_proxyInterface
private java.lang.Object m_internalSynchronization
private IServiceContainer m_serviceContainer
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 IStreamConnection m_streamConnection
private boolean m_connected
private IAIEventListener m_aiEventListener
Constructor Detail |
---|
public AnonClient()
public AnonClient(IStreamConnection a_theConnection)
Method Detail |
---|
public int initialize(AnonServerDescription a_mixCascade, IServiceContainer a_serviceContainer, TermsAndConditionConfirmation termsConfirmation)
AnonService
initialize
in interface AnonService
a_mixCascade
- AnonServer to use
public static void setLoginTimeout(int a_loginTimeoutMS)
private static void resetInternalLoginTimeout()
private static int getInternalLoginTimeout(IServiceContainer a_serviceContainer)
public static int getLoginTimeout()
public int setProxy(IMutableProxyInterface a_proxyInterface)
AnonService
setProxy
in interface AnonService
public void shutdown(boolean a_bResetTransferredBytes)
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 removedprivate void reconnect(java.lang.Object a_argument)
public 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)
private IStreamConnection connectMixCascade(MixCascade a_mixCascade, ImmutableProxyInterface a_proxyInterface) throws java.io.InterruptedIOException
java.io.InterruptedIOException
private int initializeProtocol(IStreamConnection a_connectionToMixCascade, AnonServerDescription a_mixCascade, IServiceContainer a_serviceContainer, TermsAndConditionConfirmation termsConfirmation)
public void connectionEstablished(AnonServerDescription a_serverDescription)
private int finishInitialization(Multiplexer a_multiplexer, KeyExchangeManager a_keyExchangeManager, PacketCounter a_packetCounter, IStreamConnection a_connection, IServiceContainer a_serviceContainer, MixCascade a_cascade)
private void closeSocketHandler()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |