java.lang.Object
io.qt.QtObject
io.qt.network.QNetworkDatagram
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
The data and metadata of a UDP datagram
Java wrapper for Qt class QNetworkDatagram
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorsConstructorDescriptionQNetworkDatagram
(QByteArray data) Overloaded constructor forQNetworkDatagram(io.qt.core.QByteArray, io.qt.network.QHostAddress, short)
QNetworkDatagram
(QByteArray data, QHostAddress destinationAddress) Overloaded constructor forQNetworkDatagram(io.qt.core.QByteArray, io.qt.network.QHostAddress, short)
withport = 0
.QNetworkDatagram
(QByteArray data, QHostAddress destinationAddress, short port) QNetworkDatagram
(QNetworkDatagram other) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QNetworkDatagram other) final void
clear()
clone()
Creates and returns a copy of this object.final QByteArray
data()
final QHostAddress
final int
final int
hopLimit()
final int
final boolean
isNull()
final boolean
isValid()
final QNetworkDatagram
makeReply
(QByteArray paylaod) final QHostAddress
final int
final void
setData
(QByteArray data) final void
setDestination
(QHostAddress address, short port) final void
setHopLimit
(int count) final void
setInterfaceIndex
(int index) final void
setSender
(QHostAddress address) Overloaded function forsetSender(io.qt.network.QHostAddress, short)
withport = 0
.final void
setSender
(QHostAddress address, short port) final void
swap
(QNetworkDatagram other) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QNetworkDatagram
public QNetworkDatagram() -
QNetworkDatagram
Overloaded constructor for
QNetworkDatagram(io.qt.core.QByteArray, io.qt.network.QHostAddress, short)
withport = 0
. -
QNetworkDatagram
Overloaded constructor for
QNetworkDatagram(io.qt.core.QByteArray, io.qt.network.QHostAddress, short)
with:
destinationAddress = new io.qt.network.QHostAddress()
port = 0
-
QNetworkDatagram
-
QNetworkDatagram
-
-
Method Details
-
clear
-
data
-
destinationAddress
-
destinationPort
-
hopLimit
-
interfaceIndex
-
isNull
-
isValid
-
makeReply
-
assign
-
senderAddress
-
senderPort
-
setData
-
setDestination
-
setHopLimit
-
setInterfaceIndex
-
setSender
Overloaded function for
setSender(io.qt.network.QHostAddress, short)
withport = 0
. -
setSender
-
swap
-
clone
Creates and returns a copy of this object.
-