public class TorAnonServerDescription extends java.lang.Object implements AnonServerDescription
Modifier and Type | Field and Description |
---|---|
private boolean |
m_bStartCircuitsAtStartup |
private boolean |
m_bUseInfoService |
private int |
m_iMaxConnectionsPerRoute |
private int |
m_iMaxRouteLen |
private int |
m_iMinRouteLen |
private int |
m_iTorDirServerPort |
private java.lang.String |
m_strTorDirServerAddr |
Constructor and Description |
---|
TorAnonServerDescription()
Constructor
|
TorAnonServerDescription(boolean bUseInfoService)
Constructor
|
TorAnonServerDescription(boolean bUseInfoService,
boolean bStartCircuitsAtStartup)
Constructor
|
TorAnonServerDescription(java.lang.String torDirServerAddr,
int torDirServerPort,
boolean bStartCircuitsAtStartup)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxConnectionsPerRoute() |
int |
getMaxRouteLen() |
int |
getMinRouteLen() |
java.lang.String |
getTorDirServerAddr()
gets the address of the tor directory server
|
int |
getTorDirServerPort()
gets the port of the tor directory server
|
void |
setMaxConnectionsPerRoute(int i) |
void |
setMaxRouteLen(int i) |
void |
setMinRouteLen(int i) |
void |
setTorDirServer(java.lang.String hostname,
int port) |
boolean |
startCircuitsAtStartup()
gets if all circuits are created on startup
|
boolean |
useInfoService()
gets if the infoservice is used
|
private int m_iTorDirServerPort
private java.lang.String m_strTorDirServerAddr
private final boolean m_bUseInfoService
private final boolean m_bStartCircuitsAtStartup
private int m_iMaxRouteLen
private int m_iMinRouteLen
private int m_iMaxConnectionsPerRoute
public TorAnonServerDescription()
public TorAnonServerDescription(boolean bUseInfoService)
bUseInfoService
- use the info servicepublic TorAnonServerDescription(boolean bUseInfoService, boolean bStartCircuitsAtStartup)
bUseInfoService
- use the info servicebStartCircuitsAtStartup
- start all circuits at startuppublic TorAnonServerDescription(java.lang.String torDirServerAddr, int torDirServerPort, boolean bStartCircuitsAtStartup)
torDirServerAddr
- address of a tor directory servertorDirServerPort
- port of the tor directory serverbStartCircuitsAtStartup
- start all circuits at startuppublic void setTorDirServer(java.lang.String hostname, int port)
public java.lang.String getTorDirServerAddr()
public int getTorDirServerPort()
public boolean useInfoService()
public boolean startCircuitsAtStartup()
public void setMaxRouteLen(int i)
public int getMaxRouteLen()
public void setMinRouteLen(int i)
public int getMinRouteLen()
public void setMaxConnectionsPerRoute(int i)
public int getMaxConnectionsPerRoute()
Copyright © 2023. All rights reserved.