Class PeerAlert<T extends peer_alert>

All Implemented Interfaces:
Alert<T>
Direct Known Subclasses:
BlockDownloadingAlert, BlockFinishedAlert, BlockTimeoutAlert, BlockUploadedAlert, IncomingRequestAlert, InvalidRequestAlert, LsdPeerAlert, PeerBanAlert, PeerConnectAlert, PeerDisconnectedAlert, PeerErrorAlert, PeerLogAlert, PeerSnubbedAlert, PeerUnsnubbedAlert, PickerLogAlert, RequestDroppedAlert, UnwantedBlockAlert

public class PeerAlert<T extends peer_alert> extends TorrentAlert<T>
The peer alert is a base class for alerts that refer to a specific peer. It includes all the information to identify the peer. i.e. ip and peer-id.
  • Method Details

    • endpoint

      public TcpEndpoint endpoint()
      The peer's IP address and port.
      Returns:
      the endpoint
    • peerId

      public Sha1Hash peerId()
      The peer ID, if known.
      Returns:
      the id