Class PeerDisconnectedAlert

java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<com.frostwire.jlibtorrent.swig.peer_disconnected_alert>
com.frostwire.jlibtorrent.alerts.TorrentAlert<com.frostwire.jlibtorrent.swig.peer_disconnected_alert>
com.frostwire.jlibtorrent.alerts.PeerAlert<com.frostwire.jlibtorrent.swig.peer_disconnected_alert>
com.frostwire.jlibtorrent.alerts.PeerDisconnectedAlert
All Implemented Interfaces:
Alert<com.frostwire.jlibtorrent.swig.peer_disconnected_alert>

public final class PeerDisconnectedAlert extends PeerAlert<com.frostwire.jlibtorrent.swig.peer_disconnected_alert>
This alert is generated when a peer is disconnected for any reason (other than the ones covered by ).
  • Method Details

    • socketType

      public int socketType()
      The kind of socket this peer was connected over.
      Returns:
      the socket type.
    • operation

      public Operation operation()
      The operation or level where the error occurred.
      Returns:
      the operation.
    • error

      public ErrorCode error()
      Tells you what error caused peer to disconnect.
      Returns:
      the error.
    • reason

      public CloseReason reason()
      The reason the peer disconnected (if specified).
      Returns:
      the reason.