Class PortmapAlert
java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<portmap_alert>
com.frostwire.jlibtorrent.alerts.PortmapAlert
- All Implemented Interfaces:
Alert<portmap_alert>
This alert is generated when a NAT router was successfully found and
a port was successfully mapped on it. On a NAT:ed network with a NAT-PMP
capable router, this is typically generated once when mapping the TCP
port and, if DHT is enabled, when the UDP port is mapped.
-
Field Summary
Fields inherited from class com.frostwire.jlibtorrent.alerts.AbstractAlert
alertFields inherited from interface com.frostwire.jlibtorrent.alerts.Alert
ALL_CATEGORIES, BLOCK_PROGRESS_NOTIFICATION, CONNECT_NOTIFICATION, DHT_LOG_NOTIFICATION, DHT_NOTIFICATION, DHT_OPERATION_NOTIFICATION, ERROR_NOTIFICATION, FILE_PROGRESS_NOTIFICATION, INCOMING_REQUEST_NOTIFICATION, IP_BLOCK_NOTIFICATION, PEER_LOG_NOTIFICATION, PEER_NOTIFICATION, PERFORMANCE_WARNING, PICKER_LOG_NOTIFICATION, PIECE_PROGRESS_NOTIFICATION, PORT_MAPPING_LOG_NOTIFICATION, PORT_MAPPING_NOTIFICATION, SESSION_LOG_NOTIFICATION, STATUS_NOTIFICATION, STORAGE_NOTIFICATION, TORRENT_LOG_NOTIFICATION, TRACKER_NOTIFICATION, UPLOAD_NOTIFICATION -
Method Summary
Modifier and TypeMethodDescriptionintthe external port allocated for the mapping.intmapping()refers to the mapping index of the port map that failed, i.e.The protocol this mapping was for.
-
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
-
externalPort
public int externalPort()the external port allocated for the mapping.- Returns:
- the external port
-
mapTransport
-
mapProtocol
The protocol this mapping was for.- Returns:
- the mapping protocol
-