Class PeerItem

java.lang.Object
com.biglybt.core.peermanager.peerdb.PeerItem
All Implemented Interfaces:
DataSourceResolver.ExportableDataSource, PeerDescriptor

public class PeerItem extends Object implements PeerDescriptor
Represents a peer item, unique by ip address + port combo. NOTE: Overrides equals().
  • Field Details

    • address

      private final byte[] address
    • udp_port

      private final short udp_port
    • tcp_port

      private final short tcp_port
    • source

      private final byte source
    • hashcode

      private final int hashcode
    • handshake

      private final byte handshake
    • crypto_level

      private final byte crypto_level
    • up_speed

      private final short up_speed
    • priority

      private final int priority
    • network

      private final String network
  • Constructor Details

    • PeerItem

      protected PeerItem(String _address, int _tcp_port, byte _source, byte _handshake, int _udp_port, byte _crypto_level, int _up_speed)
    • PeerItem

      protected PeerItem(byte[] _serialization, byte _source, byte _handshake, int _udp_port, String _network) throws Exception
      Throws:
      Exception
  • Method Details