QCoapInternalReply Class
The QCoapInternalReply class contains data related to a received message. More...
Header: | #include <QCoapInternalReply> |
Inherits: | QCoapInternalMessage |
Public Functions
QCoapInternalReply(QObject *parent = nullptr) | |
void | appendData(const QByteArray &data) |
bool | hasMoreBlocksToSend() const |
int | nextBlockToSend() const |
QtCoap::ResponseCode | responseCode() const |
QHostAddress | senderAddress() const |
void | setSenderAddress(const QHostAddress &address) |
Reimplemented Public Functions
virtual void | addOption(const QCoapOption &option) override |
See also QCoapInternalMessage and QCoapInternalRequest.
Member Function Documentation
[explicit]
QCoapInternalReply::QCoapInternalReply(QObject *parent = nullptr)
\internal
Constructs a new QCoapInternalReply with parent as the parent object.
[override virtual]
void QCoapInternalReply::addOption(const QCoapOption &option)
Reimplements: QCoapInternalMessage::addOption(const QCoapOption &option).
\internal
Adds the given CoAP option and sets block parameters if needed.
void QCoapInternalReply::appendData(const QByteArray &data)
\internal
Appends the given data byte array to the current payload.
bool QCoapInternalReply::hasMoreBlocksToSend() const
\internal
Returns true
if the client has one or more blocks to send.
int QCoapInternalReply::nextBlockToSend() const
\internal
Returns the number of the next block, if there is another block to come, otherwise -1. For more details, refer to the RFC 7959.
QtCoap::ResponseCode QCoapInternalReply::responseCode() const
\internal
Returns the response code of the reply.
QHostAddress QCoapInternalReply::senderAddress() const
\internal
Returns the host address from which the reply was received.
See also setSenderAddress().
void QCoapInternalReply::setSenderAddress(const QHostAddress &address)
\internal
Sets the sender address.
See also senderAddress().