|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Enum
com.trolltech.qt.network.QUdpSocket.BindFlag
public static final class QUdpSocket.BindFlag
This enum describes the different flags you can pass to modify the behavior of QUdpSocket::bind()
.
Field Summary | |
---|---|
static QUdpSocket.BindFlag |
DefaultForPlatform
The default option for the current platform. |
static QUdpSocket.BindFlag |
DontShareAddress
Bind the address and port exclusively, so that no other services are allowed to rebind. |
static QUdpSocket.BindFlag |
ReuseAddressHint
Provides a hint to QUdpSocket that it should try to rebind the service even if the address and port are already bound by another socket. |
static QUdpSocket.BindFlag |
ShareAddress
Allow other services to bind to the same address and port. |
Method Summary | |
---|---|
static QUdpSocket.BindMode |
createQFlags(QUdpSocket.BindFlag[] values)
|
static QUdpSocket.BindFlag |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QUdpSocket.BindFlag |
valueOf(java.lang.String name)
|
static QUdpSocket.BindFlag[] |
values()
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final QUdpSocket.BindFlag DefaultForPlatform
DontShareAddress
+ ReuseAddressHint
), and on Windows, its equivalent to ShareAddress
.
public static final QUdpSocket.BindFlag ShareAddress
ReuseAddressHint
, you will also allow your service to rebind an existing shared address. On Unix, this is equivalent to the SO_REUSEADDR
socket option. On Windows, this option is ignored.
public static final QUdpSocket.BindFlag DontShareAddress
QUdpSocket::bind()
, you are guaranteed that on successs, your service is the only one that listens to the address and port. No services are allowed to rebind, even if they pass ReuseAddressHint
. This option provides more security than ShareAddress
, but on certain operating systems, it requires you to run the server with administrator privileges. On Unix and Mac OS X, not sharing is the default behavior for binding an address and port, so this option is ignored. On Windows, this option uses the SO_EXCLUSIVEADDRUSE
socket option.
public static final QUdpSocket.BindFlag ReuseAddressHint
QUdpSocket
that it should try to rebind the service even if the address and port are already bound by another socket. On Windows, this is equivalent to the SO_REUSEADDR
socket option. On Unix, this option is ignored.
Method Detail |
---|
public static QUdpSocket.BindFlag[] values()
public static QUdpSocket.BindFlag valueOf(java.lang.String name)
public int value()
value
in interface QtEnumerator
public static QUdpSocket.BindMode createQFlags(QUdpSocket.BindFlag[] values)
public static QUdpSocket.BindFlag resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |