public enum CloseReason extends java.lang.Enum<CloseReason>
| Enum Constant and Description |
|---|
BLOCKED
The source IP has been blocked.
|
CORRUPT_PIECES
The peer sent corrupt data.
|
DUPLICATE_PEER_ID
We're already connected to.
|
ENCRYPTION_ERROR
The encryption handshake failed.
|
INVALID_ALLOW_FAST_MESSAGE |
INVALID_BITFIELD_MESSAGE |
INVALID_CANCEL_MESSAGE |
INVALID_CHOKE_MESSAGE |
INVALID_DHT_PORT_MESSAGE |
INVALID_DONT_HAVE_MESSAGE |
INVALID_HAVE_ALL_MESSAGE |
INVALID_HAVE_MESSAGE |
INVALID_HAVE_NONE_MESSAGE |
INVALID_INFO_HASH
The info hash sent as part of the handshake was not what we expected.
|
INVALID_INTERESTED_MESSAGE |
INVALID_MESSAGE |
INVALID_MESSAGE_ID |
INVALID_METADATA
The metadata received matched the info-hash, but failed to parse.
|
INVALID_METADATA_MESSAGE |
INVALID_METADATA_OFFSET |
INVALID_METADATA_REQUEST_MESSAGE |
INVALID_NOT_INTERESTED_MESSAGE |
INVALID_PEX_MESSAGE |
INVALID_PIECE_MESSAGE |
INVALID_REJECT_MESSAGE |
INVALID_REQUEST_MESSAGE |
INVALID_SUGGEST_MESSAGE |
INVALID_UNCHOKE_MESSAGE |
MESSAGE_TOO_BIG |
METADATA_TOO_BIG
The advertised metadata size.
|
NO_MEMORY
Client failed to allocate necessary memory for this peer connection.
|
NONE
No reason specified.
|
NOT_INTERESTED_UPLOAD_ONLY
Connection was closed because the other end is upload only and does
not have any pieces we're interested in.
|
NVALID_EXTENDED_MESSAGE |
PEER_CHURN
The peer was disconnected in the hopes of finding a better peer
in the swarm.
|
PEX_MESSAGE_TOO_BIG |
PEX_TOO_FREQUENT |
PORT_BLOCKED
The source port of this peer is blocked.
|
PROTOCOL_BLOCKED
The encryption mode is blocked.
|
REQUEST_WHEN_CHOKED
The peer sent a request while being choked.
|
SELF_CONNECTION |
TIMED_OUT_ACTIVITY
The peer has not sent any message in a long time.
|
TIMED_OUT_HANDSHAKE
The peer did not complete the handshake in too long.
|
TIMED_OUT_INTEREST
The peers have not been interested in each other for a very long time.
|
TIMED_OUT_REQUEST
The peer sent an interested message, but did not send a request
after a very long time after being unchoked.
|
TIMEOUT
Peer connection timed out (generic timeout).
|
TOO_MANY_CONNECTIONS
We have too many peers connected.
|
TOO_MANY_FILES
We have too many file-descriptors open.
|
TORRENT_REMOVED
This torrent has been removed, paused or stopped from this client.
|
UNKNOWN |
UPLOAD_TO_UPLOAD
Both ends of the connection are upload-only.
|
| Modifier and Type | Method and Description |
|---|---|
static CloseReason |
fromSwig(int swigValue)
Converted method, it's public in order to be used in other
internal packages.
|
int |
swig() |
static CloseReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CloseReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloseReason NONE
public static final CloseReason DUPLICATE_PEER_ID
public static final CloseReason TORRENT_REMOVED
public static final CloseReason NO_MEMORY
public static final CloseReason PORT_BLOCKED
public static final CloseReason BLOCKED
public static final CloseReason UPLOAD_TO_UPLOAD
public static final CloseReason NOT_INTERESTED_UPLOAD_ONLY
public static final CloseReason TIMEOUT
public static final CloseReason TIMED_OUT_INTEREST
public static final CloseReason TIMED_OUT_ACTIVITY
public static final CloseReason TIMED_OUT_HANDSHAKE
public static final CloseReason TIMED_OUT_REQUEST
public static final CloseReason PROTOCOL_BLOCKED
public static final CloseReason PEER_CHURN
public static final CloseReason TOO_MANY_CONNECTIONS
public static final CloseReason TOO_MANY_FILES
public static final CloseReason ENCRYPTION_ERROR
public static final CloseReason INVALID_INFO_HASH
public static final CloseReason SELF_CONNECTION
public static final CloseReason INVALID_METADATA
public static final CloseReason METADATA_TOO_BIG
public static final CloseReason MESSAGE_TOO_BIG
public static final CloseReason INVALID_MESSAGE_ID
public static final CloseReason INVALID_MESSAGE
public static final CloseReason INVALID_PIECE_MESSAGE
public static final CloseReason INVALID_HAVE_MESSAGE
public static final CloseReason INVALID_BITFIELD_MESSAGE
public static final CloseReason INVALID_CHOKE_MESSAGE
public static final CloseReason INVALID_UNCHOKE_MESSAGE
public static final CloseReason INVALID_INTERESTED_MESSAGE
public static final CloseReason INVALID_NOT_INTERESTED_MESSAGE
public static final CloseReason INVALID_REQUEST_MESSAGE
public static final CloseReason INVALID_REJECT_MESSAGE
public static final CloseReason INVALID_ALLOW_FAST_MESSAGE
public static final CloseReason NVALID_EXTENDED_MESSAGE
public static final CloseReason INVALID_CANCEL_MESSAGE
public static final CloseReason INVALID_DHT_PORT_MESSAGE
public static final CloseReason INVALID_SUGGEST_MESSAGE
public static final CloseReason INVALID_HAVE_ALL_MESSAGE
public static final CloseReason INVALID_DONT_HAVE_MESSAGE
public static final CloseReason INVALID_HAVE_NONE_MESSAGE
public static final CloseReason INVALID_PEX_MESSAGE
public static final CloseReason INVALID_METADATA_REQUEST_MESSAGE
public static final CloseReason INVALID_METADATA_MESSAGE
public static final CloseReason INVALID_METADATA_OFFSET
public static final CloseReason REQUEST_WHEN_CHOKED
public static final CloseReason CORRUPT_PIECES
public static final CloseReason PEX_MESSAGE_TOO_BIG
public static final CloseReason PEX_TOO_FREQUENT
public static final CloseReason UNKNOWN
public static CloseReason[] values()
for (CloseReason c : CloseReason.values()) System.out.println(c);
public static CloseReason valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int swig()
public static CloseReason fromSwig(int swigValue)
swigValue - the native value