public static enum PeerInfo.ConnectionType extends java.lang.Enum<PeerInfo.ConnectionType>
| Enum Constant and Description |
|---|
HTTP_SEED
HTTP connection using the `BEP 17`_ protocol.
|
STANDARD_BITTORRENT
Regular bittorrent connection.
|
UNKNOWN |
WEB_SEED
HTTP connection using the `BEP 19`_ protocol
|
| Modifier and Type | Method and Description |
|---|---|
static PeerInfo.ConnectionType |
fromSwig(int swigValue) |
int |
swig() |
static PeerInfo.ConnectionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PeerInfo.ConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeerInfo.ConnectionType STANDARD_BITTORRENT
public static final PeerInfo.ConnectionType WEB_SEED
public static final PeerInfo.ConnectionType HTTP_SEED
public static final PeerInfo.ConnectionType UNKNOWN
public static PeerInfo.ConnectionType[] values()
for (PeerInfo.ConnectionType c : PeerInfo.ConnectionType.values()) System.out.println(c);
public static PeerInfo.ConnectionType 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 PeerInfo.ConnectionType fromSwig(int swigValue)
swigValue - the swig value