Class PortmapErrorAlert

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

public final class PortmapErrorAlert extends AbstractAlert<portmap_error_alert>
This alert is generated when a NAT router was successfully found but some part of the port mapping request failed. It contains a text message that may help the user figure out what is wrong. This alert is not generated in case it appears the client is not running on a NAT:ed network or if it appears there is no NAT router that can be remote controlled to add port mappings.
  • Method Details

    • mapping

      public int mapping()
      refers to the mapping index of the port map that failed, i.e. the index returned from add_mapping().
      Returns:
      the mapping index
    • mapTransport

      public PortmapTransport mapTransport()
    • error

      public ErrorCode error()
      tells you what failed.
      Returns:
      the error code