org.ssonet.mechanisms.anonymity
Class JAPAnonService
java.lang.Object
|
+--org.ssonet.mechanisms.anonymity.JAPAnonService
- public class JAPAnonService
- extends java.lang.Object
Use this class to provide client anonymity for SSONET.
All connections are made through the local ANON-service which is
responsible for sending all the data throug mixes.
This class creates a socket connection to the local ANON-service.
It is also used to configure the local ANON-service from SSONET.
- Author:
- Jens Hillert, Sebastian Clauß
Field Summary |
(package private) anon.AnonService |
anonService
|
(package private) org.ssonet.net.SSONETContext |
context
|
protected static boolean |
debug
|
Constructor Summary |
JAPAnonService(org.ssonet.net.SSONETContext context)
The Constructor initialises the local anonService and sets
all Parameters to the values which are read from the Configuration file. |
Method Summary |
java.net.Socket |
connect(java.net.InetAddress partnerInternetAddress,
int port)
Method used for establishing a connecting trough the AnonServer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
protected static boolean debug
anonService
anon.AnonService anonService
context
org.ssonet.net.SSONETContext context
JAPAnonService
public JAPAnonService(org.ssonet.net.SSONETContext context)
- The Constructor initialises the local anonService and sets
all Parameters to the values which are read from the Configuration file.
- Parameters:
context
- the SSONETContext used for the connection
connect
public java.net.Socket connect(java.net.InetAddress partnerInternetAddress,
int port)
throws java.io.IOException
- Method used for establishing a connecting trough the AnonServer. It selects the
AnonServer according to the configuration, and open a Socket through the AnonServer.
- Parameters:
partnerInternetAddress
- internet address of the serverport
- portnumber of the server
- Returns:
- the Socket, which is connected through the selected AnonServer
java.io.IOException
Copyright © 2003 DRIM Team. All Rights Reserved.