public enum SocketType extends java.lang.Enum<SocketType>
| Enum Constant and Description |
|---|
I2P |
SOCKS5 |
TCP |
TCP_SSL |
UDP |
UNKNOWN |
UTP_SSL |
| Modifier and Type | Method and Description |
|---|---|
static SocketType |
fromSwig(int swigValue) |
int |
swig() |
static SocketType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SocketType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocketType TCP
public static final SocketType TCP_SSL
public static final SocketType UDP
public static final SocketType I2P
public static final SocketType SOCKS5
public static final SocketType UTP_SSL
public static final SocketType UNKNOWN
public static SocketType[] values()
for (SocketType c : SocketType.values()) System.out.println(c);
public static SocketType 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 SocketType fromSwig(int swigValue)
swigValue - the native value