Package com.biglybt.plugin.net.netstatus
Class NetStatusProtocolTesterBT
java.lang.Object
com.biglybt.plugin.net.netstatus.NetStatusProtocolTesterBT
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AESemaphore
private boolean
private InetAddress
private int
private CopyOnWriteList
private byte[]
private int
private boolean
private int
private byte[]
private PeerManagerRegistration
private static Random
private int
private List
private long
private boolean
private NetStatusProtocolTester
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NetStatusProtocolTesterBT
(NetStatusProtocolTester _tester, boolean _test_initiator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
void
destroy()
int
int
protected byte[]
protected long
getStartTime
(long now) protected boolean
protected void
protected void
protected void
protected void
void
void
void
protected void
start()
protected void
testOutbound
(InetSocketAddress address, byte[] their_hash, boolean use_crypto) boolean
waitForCompletion
(long max_millis)
-
Field Details
-
random
-
tester
-
test_initiator
private boolean test_initiator -
listeners
-
my_hash
private byte[] my_hash -
peer_id
private byte[] peer_id -
explicit_bind
-
pm_reg
-
start_time
private long start_time -
sessions
-
session_id_next
private int session_id_next -
outbound_attempts
private int outbound_attempts -
outbound_connects
private int outbound_connects -
inbound_connects
private int inbound_connects -
outbound_connections_complete
private boolean outbound_connections_complete -
completion_sem
-
destroyed
private boolean destroyed
-
-
Constructor Details
-
NetStatusProtocolTesterBT
-
-
Method Details
-
setBindIP
-
start
protected void start() -
getServerHash
protected byte[] getServerHash() -
getStartTime
protected long getStartTime(long now) -
testOutbound
-
destroy
public void destroy() -
isDestroyed
protected boolean isDestroyed() -
setOutboundConnectionsComplete
public void setOutboundConnectionsComplete() -
checkCompletion
protected void checkCompletion() -
waitForCompletion
public boolean waitForCompletion(long max_millis) -
addListener
-
removeListener
-
getOutboundConnects
public int getOutboundConnects() -
getInboundConnects
public int getInboundConnects() -
getStatus
-
log
-
log
-
logError
-
logError
-