- All Implemented Interfaces:
QtObjectInterface
,Cloneable
The data and metadata of a UDP datagram
Java wrapper for Qt class QNetworkDatagram
-
Constructor Summary
ConstructorsConstructorDescriptionQNetworkDatagram
(byte [] data) Overloaded constructor forQNetworkDatagram(byte[], io.qt.network.QHostAddress, short)
QNetworkDatagram
(byte [] data, QHostAddress destinationAddress) Overloaded constructor forQNetworkDatagram(byte[], io.qt.network.QHostAddress, short)
withport = 0
.QNetworkDatagram
(byte [] data, QHostAddress destinationAddress, short port) Overloaded constructor forQNetworkDatagram(io.qt.core.QByteArray, io.qt.network.QHostAddress, short)
.QNetworkDatagram
(byte [] data, QHostAddress.SpecialAddress destinationAddress) Overloaded constructor forQNetworkDatagram(byte[], io.qt.network.QHostAddress.SpecialAddress, short)
withport = 0
.QNetworkDatagram
(byte [] data, QHostAddress.SpecialAddress destinationAddress, short port) Overloaded constructor forQNetworkDatagram(io.qt.core.QByteArray, io.qt.network.QHostAddress, short)
.QNetworkDatagram
(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
(QByteArray data, QHostAddress.SpecialAddress destinationAddress) Overloaded constructor forQNetworkDatagram(io.qt.core.QByteArray, io.qt.network.QHostAddress.SpecialAddress, short)
withport = 0
.QNetworkDatagram
(QByteArray data, QHostAddress.SpecialAddress destinationAddress, short port) Overloaded constructor forQNetworkDatagram(io.qt.core.QByteArray, io.qt.network.QHostAddress, short)
.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
(byte [] paylaod) Overloaded function formakeReply(io.qt.core.QByteArray)
.final QNetworkDatagram
makeReply
(QByteArray paylaod) final QHostAddress
final int
final void
setData
(byte [] data) Overloaded function forsetData(io.qt.core.QByteArray)
.final void
setData
(QByteArray data) final void
setDestination
(QHostAddress address, short port) final void
setDestination
(QHostAddress.SpecialAddress address, short port) Overloaded function forsetDestination(io.qt.network.QHostAddress, short)
.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
setSender
(QHostAddress.SpecialAddress address) Overloaded function forsetSender(io.qt.network.QHostAddress.SpecialAddress, short)
withport = 0
.final void
setSender
(QHostAddress.SpecialAddress address, short port) Overloaded function forsetSender(io.qt.network.QHostAddress, short)
.final void
swap
(QNetworkDatagram other) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QNetworkDatagram
public QNetworkDatagram() -
QNetworkDatagram
-
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
Overloaded constructor for
QNetworkDatagram(byte[], io.qt.network.QHostAddress, short)
withport = 0
. -
QNetworkDatagram
public QNetworkDatagram(byte [] data) Overloaded constructor for
QNetworkDatagram(byte[], io.qt.network.QHostAddress, short)
with:
destinationAddress = new io.qt.network.QHostAddress()
port = 0
-
QNetworkDatagram
Overloaded constructor for
QNetworkDatagram(io.qt.core.QByteArray, io.qt.network.QHostAddress, short)
. -
QNetworkDatagram
Overloaded constructor for
QNetworkDatagram(io.qt.core.QByteArray, io.qt.network.QHostAddress.SpecialAddress, short)
withport = 0
. -
QNetworkDatagram
public QNetworkDatagram(QByteArray data, QHostAddress.SpecialAddress destinationAddress, short port) Overloaded constructor for
QNetworkDatagram(io.qt.core.QByteArray, io.qt.network.QHostAddress, short)
. -
QNetworkDatagram
Overloaded constructor for
QNetworkDatagram(byte[], io.qt.network.QHostAddress.SpecialAddress, short)
withport = 0
. -
QNetworkDatagram
Overloaded constructor for
QNetworkDatagram(io.qt.core.QByteArray, io.qt.network.QHostAddress, short)
.
-
-
Method Details
-
clear
-
data
-
destinationAddress
-
destinationPort
-
hopLimit
-
interfaceIndex
-
isNull
-
isValid
-
makeReply
-
assign
-
senderAddress
-
senderPort
-
setData
-
setDestination
-
setHopLimit
-
setInterfaceIndex
-
setSender
-
swap
-
clone
Creates and returns a copy of this object.
-
makeReply
Overloaded function for
makeReply(io.qt.core.QByteArray)
. -
setData
Overloaded function for
setData(io.qt.core.QByteArray)
. -
setDestination
Overloaded function for
setDestination(io.qt.network.QHostAddress, short)
. -
setSender
Overloaded function for
setSender(io.qt.network.QHostAddress, short)
withport = 0
. -
setSender
Overloaded function for
setSender(io.qt.network.QHostAddress.SpecialAddress, short)
withport = 0
. -
setSender
Overloaded function for
setSender(io.qt.network.QHostAddress, short)
.
-