|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
By implementing the AnonymityListener
interface, an application
can keep track of the anonymity level and state of open connections.
In BaseConfiguration, users can define an anonymity level, below which
they want to get a warning, and an anonymity level below which a connection
should be aborted.
Field Summary | |
static int |
ANONYMITY_STATE_ABORT
Indicates that connection is aborted because of low anonymity |
static int |
ANONYMITY_STATE_NORMAL
Indicates a normal (high enough) anonymity state |
static int |
ANONYMITY_STATE_WARN
Indicates a warning anonymity state |
Method Summary | |
void |
anonymityLevelChanged(org.ssonet.net.SSONETContext context,
int level)
This method is called, if the anonymity level of the connection has changed. |
void |
anonymityStateChanged(org.ssonet.net.SSONETContext context,
int state)
This method is called, if the anonymity state of the connection has changed. |
Field Detail |
public static final int ANONYMITY_STATE_NORMAL
public static final int ANONYMITY_STATE_WARN
public static final int ANONYMITY_STATE_ABORT
Method Detail |
public void anonymityLevelChanged(org.ssonet.net.SSONETContext context, int level)
context
- the SSONETContext for the connection, where the anonymity level has changedlevel
- the anonymity level reachedpublic void anonymityStateChanged(org.ssonet.net.SSONETContext context, int state)
ANONYMITY_STATE_NORMAL, ANONYMITY_STATE_WARN
and
ANONYMITY_STATE_ABORT
.
context
- the SSONETContext for the connection, where the anonymity state has changedstate
- the anonymity state reached
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |