Class NetStatusProtocolTesterBT


  • public class NetStatusProtocolTesterBT
    extends java.lang.Object
    • Field Detail

      • random

        private static java.util.Random random
      • test_initiator

        private boolean test_initiator
      • my_hash

        private byte[] my_hash
      • peer_id

        private byte[] peer_id
      • explicit_bind

        private java.net.InetAddress explicit_bind
      • start_time

        private long start_time
      • sessions

        private java.util.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
      • destroyed

        private boolean destroyed
    • Constructor Detail

      • NetStatusProtocolTesterBT

        protected NetStatusProtocolTesterBT​(NetStatusProtocolTester _tester,
                                            boolean _test_initiator)
    • Method Detail

      • setBindIP

        public void setBindIP​(java.net.InetAddress a)
      • start

        protected void start()
      • getServerHash

        protected byte[] getServerHash()
      • getStartTime

        protected long getStartTime​(long now)
      • testOutbound

        protected void testOutbound​(java.net.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)
      • getOutboundConnects

        public int getOutboundConnects()
      • getInboundConnects

        public int getInboundConnects()
      • getStatus

        public java.lang.String getStatus()
      • log

        protected void log​(java.lang.String str)
      • log

        protected void log​(java.lang.String str,
                           boolean detailed)
      • logError

        protected void logError​(java.lang.String str)
      • logError

        protected void logError​(java.lang.String str,
                                java.lang.Throwable e)