Package com.biglybt.core.instancemanager
Interface ClientInstanceManager
- All Known Implementing Classes:
ClientInstanceManagerImpl
public interface ClientInstanceManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExplicitLANAddress
(InetSocketAddress address) boolean
addInstance
(InetAddress explicit_address) boolean
addLANSubnet
(String subnet) void
long
getExternalAddress
(InetSocketAddress lan_address, int address_type) boolean
getLANAddress
(InetSocketAddress external_address, int address_type) int
getOtherInstanceCount
(boolean block_if_needed) void
boolean
isExplicitLANAddress
(InetSocketAddress address) boolean
boolean
isLANAddress
(InetSocketAddress address) void
void
void
setIncludeWellKnownLANs
(boolean include) track
(byte[] hash, ClientInstanceTracked.TrackTarget target) void
-
Field Details
-
AT_TCP
static final int AT_TCP- See Also:
-
AT_UDP
static final int AT_UDP- See Also:
-
AT_UDP_NON_DATA
static final int AT_UDP_NON_DATA- See Also:
-
-
Method Details
-
initialize
void initialize() -
isInitialized
boolean isInitialized() -
getMyInstance
ClientInstance getMyInstance() -
getOtherInstanceCount
int getOtherInstanceCount(boolean block_if_needed) -
getOtherInstances
ClientInstance[] getOtherInstances() -
updateNow
void updateNow() -
track
-
getLANAddress
-
getExternalAddress
-
isLANAddress
-
addLANSubnet
- Throws:
PatternSyntaxException
-
addExplicitLANAddress
-
removeExplicitLANAddress
-
isExplicitLANAddress
-
getIncludeWellKnownLANs
boolean getIncludeWellKnownLANs() -
setIncludeWellKnownLANs
void setIncludeWellKnownLANs(boolean include) -
getClockSkew
long getClockSkew() -
addInstance
-
addListener
-
removeListener
-