Class NetStatusProtocolTesterBT

java.lang.Object
com.biglybt.plugin.net.netstatus.NetStatusProtocolTesterBT

public class NetStatusProtocolTesterBT extends Object
  • Field Details

    • random

      private static Random random
    • tester

      private NetStatusProtocolTester tester
    • test_initiator

      private boolean test_initiator
    • listeners

      private CopyOnWriteList listeners
    • my_hash

      private byte[] my_hash
    • peer_id

      private byte[] peer_id
    • explicit_bind

      private InetAddress explicit_bind
    • pm_reg

      private PeerManagerRegistration pm_reg
    • start_time

      private long start_time
    • sessions

      private List 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

      private AESemaphore completion_sem
    • destroyed

      private boolean destroyed
  • Constructor Details

    • NetStatusProtocolTesterBT

      protected NetStatusProtocolTesterBT(NetStatusProtocolTester _tester, boolean _test_initiator)
  • Method Details

    • setBindIP

      public void setBindIP(InetAddress a)
    • start

      protected void start()
    • getServerHash

      protected byte[] getServerHash()
    • getStartTime

      protected long getStartTime(long now)
    • testOutbound

      protected void testOutbound(InetSocketAddress address, byte[] their_hash, boolean use_crypto)
    • destroy

      public void destroy()
    • isDestroyed

      protected boolean isDestroyed()
    • setOutboundConnectionsComplete

      public void setOutboundConnectionsComplete()
    • checkCompletion

      protected void checkCompletion()
    • waitForCompletion

      public boolean waitForCompletion(long max_millis)
    • addListener

      public void addListener(NetStatusProtocolTesterListener l)
    • removeListener

      public void removeListener(NetStatusProtocolTesterListener l)
    • getOutboundConnects

      public int getOutboundConnects()
    • getInboundConnects

      public int getInboundConnects()
    • getStatus

      public String getStatus()
    • log

      protected void log(String str)
    • log

      protected void log(String str, boolean detailed)
    • logError

      protected void logError(String str)
    • logError

      protected void logError(String str, Throwable e)