| Enum Constant and Description |
|---|
ALLOC_CACHE_PIECE |
ALLOC_RECVBUF
An attempt to allocate a receive buffer failed.
|
ALLOC_SNDBUF
An attempt to allocate a send buffer failed.
|
AVAILABLE
An attempt to query the number of bytes available to read from a socket
failed.
|
BITTORRENT
This is used when the bittorrent logic determines to disconnect.
|
CHECK_RESUME |
CONNECT
An attempt to connect a socket failed.
|
ENCRYPTION
A call related to bittorrent protocol encryption failed.
|
ENUM_IF
Enumeration network devices or adapters.
|
EXCEPTION |
FILE
A non-read and non-write file operation failed.
|
FILE_COPY |
FILE_FALLOCATE |
FILE_HARD_LINK |
FILE_OPEN |
FILE_READ
Reading from a file failed.
|
FILE_REMOVE |
FILE_RENAME |
FILE_STAT |
FILE_WRITE
Writing to a file failed.
|
GET_INTERFACE
A connection failed to satisfy the bind interface setting.
|
GETNAME
A call to getname failed (querying the local IP of a connection).
|
GETPEERNAME
A call to getpeername failed (querying the remote IP of a connection).
|
HOSTNAME_LOOKUP |
IOCONTROL
A call to iocontrol failed.
|
MKDIR |
PARSE_ADDRESS
Convert a string into a valid network address.
|
PARTFILE_MOVE |
PARTFILE_READ |
PARTFILE_WRITE |
SOCK_ACCEPT
A call to accept() on a socket.
|
SOCK_BIND
A call to bind() on a socket failed.
|
SOCK_BIND_TO_DEVICE
A call to the ioctl to bind a socket to a specific network device or
adaptor.
|
SOCK_LISTEN
A call to listen() on a socket.
|
SOCK_OPEN
A call to open(), to create a socket socket failed.
|
SOCK_READ
A socket read operation failed.
|
SOCK_WRITE
A socket write operation failed.
|
SSL_HANDSHAKE
Establishing an SSL connection failed.
|
UNKNOWN
The error was unexpected and it is unknown which operation caused it.
|
| Modifier and Type | Method and Description |
|---|---|
static Operation |
fromSwig(int swigValue) |
static Operation |
fromSwig(operation_t swigValue) |
java.lang.String |
nativeName() |
int |
swig() |
static Operation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Operation UNKNOWN
public static final Operation BITTORRENT
public static final Operation IOCONTROL
public static final Operation GETPEERNAME
public static final Operation GETNAME
public static final Operation ALLOC_RECVBUF
public static final Operation ALLOC_SNDBUF
public static final Operation FILE_WRITE
public static final Operation FILE_READ
public static final Operation FILE
public static final Operation SOCK_WRITE
public static final Operation SOCK_READ
public static final Operation SOCK_OPEN
public static final Operation SOCK_BIND
public static final Operation AVAILABLE
public static final Operation ENCRYPTION
public static final Operation CONNECT
public static final Operation SSL_HANDSHAKE
public static final Operation GET_INTERFACE
public static final Operation SOCK_LISTEN
public static final Operation SOCK_BIND_TO_DEVICE
public static final Operation SOCK_ACCEPT
public static final Operation PARSE_ADDRESS
public static final Operation ENUM_IF
public static final Operation FILE_STAT
public static final Operation FILE_COPY
public static final Operation FILE_FALLOCATE
public static final Operation FILE_HARD_LINK
public static final Operation FILE_REMOVE
public static final Operation FILE_RENAME
public static final Operation FILE_OPEN
public static final Operation MKDIR
public static final Operation CHECK_RESUME
public static final Operation EXCEPTION
public static final Operation ALLOC_CACHE_PIECE
public static final Operation PARTFILE_MOVE
public static final Operation PARTFILE_READ
public static final Operation PARTFILE_WRITE
public static final Operation HOSTNAME_LOOKUP
public static Operation[] values()
for (Operation c : Operation.values()) System.out.println(c);
public static Operation 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 java.lang.String nativeName()
public static Operation fromSwig(int swigValue)
swigValue - the native valuepublic static Operation fromSwig(operation_t swigValue)
swigValue - the native enum