|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QAbstractSocket.SocketError>
com.trolltech.qt.network.QAbstractSocket.SocketError
public static enum QAbstractSocket.SocketError
This enum describes the socket errors that can occur.
Used by QAbstractSocketEngine only, this error indicates that the last operation could not complete.
Enum Constant Summary | |
---|---|
AddressInUseError
The address specified to QUdpSocket::bind() is already in use and was set to be exclusive. |
|
ConnectionRefusedError
The connection was refused by the peer (or timed out). |
|
DatagramTooLargeError
The datagram was larger than the operating system's limit (which can be as low as 8192 bytes). |
|
HostNotFoundError
The host address was not found. |
|
NetworkError
An error occurred with the network (e.g., the network cable was accidentally plugged out). |
|
ProxyAuthenticationRequiredError
The socket is using a proxy, and the proxy requires authentication. |
|
RemoteHostClosedError
The remote host closed the connection. |
|
SocketAccessError
The socket operation failed because the application lacked the required privileges. |
|
SocketAddressNotAvailableError
The address specified to QUdpSocket::bind() does not belong to the host. |
|
SocketResourceError
The local system ran out of resources (e.g., too many sockets). |
|
SocketTimeoutError
The socket operation timed out. |
|
UnfinishedSocketOperationError
Internal. |
|
UnknownSocketError
An unidentified error occurred. |
|
UnsupportedSocketOperationError
The requested socket operation is not supported by the local operating system (e.g., lack of IPv6 support). |
Method Summary | |
---|---|
static QAbstractSocket.SocketError |
resolve(int value)
|
int |
value()
|
static QAbstractSocket.SocketError |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QAbstractSocket.SocketError[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final QAbstractSocket.SocketError ConnectionRefusedError
The connection was refused by the peer (or timed out).
public static final QAbstractSocket.SocketError RemoteHostClosedError
The remote host closed the connection. Note that the client socket (i.e., this socket) will be closed after the remote close notification has been sent.
public static final QAbstractSocket.SocketError HostNotFoundError
The host address was not found.
public static final QAbstractSocket.SocketError SocketAccessError
The socket operation failed because the application lacked the required privileges.
public static final QAbstractSocket.SocketError SocketResourceError
The local system ran out of resources (e.g., too many sockets).
public static final QAbstractSocket.SocketError SocketTimeoutError
The socket operation timed out.
public static final QAbstractSocket.SocketError DatagramTooLargeError
The datagram was larger than the operating system's limit (which can be as low as 8192 bytes).
public static final QAbstractSocket.SocketError NetworkError
An error occurred with the network (e.g., the network cable was accidentally plugged out).
public static final QAbstractSocket.SocketError AddressInUseError
The address specified to QUdpSocket::bind() is already in use and was set to be exclusive.
public static final QAbstractSocket.SocketError SocketAddressNotAvailableError
The address specified to QUdpSocket::bind() does not belong to the host.
public static final QAbstractSocket.SocketError UnsupportedSocketOperationError
The requested socket operation is not supported by the local operating system (e.g., lack of IPv6 support).
public static final QAbstractSocket.SocketError UnfinishedSocketOperationError
public static final QAbstractSocket.SocketError ProxyAuthenticationRequiredError
The socket is using a proxy, and the proxy requires authentication.
public static final QAbstractSocket.SocketError UnknownSocketError
An unidentified error occurred.
Method Detail |
---|
public static final QAbstractSocket.SocketError[] values()
for(QAbstractSocket.SocketError c : QAbstractSocket.SocketError.values()) System.out.println(c);
public static QAbstractSocket.SocketError 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 namepublic int value()
value
in interface QtEnumerator
public static QAbstractSocket.SocketError resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |