Class ListenSucceededAlert

java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<listen_succeeded_alert>
com.frostwire.jlibtorrent.alerts.ListenSucceededAlert
All Implemented Interfaces:
Alert<listen_succeeded_alert>

public final class ListenSucceededAlert extends AbstractAlert<listen_succeeded_alert>
This alert is posted when the listen port succeeds to be opened on a particular interface. address() and port() is the endpoint that successfully was opened for listening.
  • Method Details

    • address

      public Address address()
      The address libtorrent ended up listening on. This address refers to the local interface.
      Returns:
      the address ended up listening on
    • port

      public int port()
      The port libtorrent ended up listening on.
      Returns:
      the port
    • socketType

      public SocketType socketType()
      the type of listen socket this alert refers to.
      Returns:
      the socket type