public final class ListenFailedAlert extends AbstractAlert<listen_failed_alert>
listenInterface() member is the
interface and port that failed, error() is the error code describing
the failure.
In the case an endpoint was created before generating the alert, it is represented by ``address`` and ``port``. The combinations of socket type and operation in which such address and port are not valid are: accept - i2p accept - socks5 enum_if - tcp
libtorrent may sometimes try to listen on port 0, if all other ports failed.
Port 0 asks the operating system to pick a port that's free). If that fails
you may see a ListenFailedAlert with port 0 even if you didn't ask to
listen on it.
alertALL_CATEGORIES, BLOCK_PROGRESS_NOTIFICATION, DEBUG_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, STATS_NOTIFICATION, STATUS_NOTIFICATION, STORAGE_NOTIFICATION, TORRENT_LOG_NOTIFICATION, TRACKER_NOTIFICATION, UPLOAD_NOTIFICATION| Modifier and Type | Method and Description |
|---|---|
Address |
address()
The address libtorrent attempted to listen on.
|
ErrorCode |
error()
The error the system returned.
|
java.lang.String |
listenInterface()
The interface libtorrent attempted to listen on that failed.
|
Operation |
operation()
The specific low level operation that failed.
|
int |
port()
The port libtorrent attempted to listen on
see alert's documentation for validity of this value.
|
SocketType |
socketType()
The type of listen socket this alert refers to.
|
public java.lang.String listenInterface()
public ErrorCode error()
public Operation operation()
public SocketType socketType()
public Address address()
public int port()