summaryrefslogtreecommitdiffstats
path: root/examples/network/secureudpclient/association.cpp
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2018-07-26 11:38:48 +0200
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2018-07-27 11:53:28 +0000
commit8948491edaf2671187af40287dd1569aa0bee235 (patch)
tree74103e8e7cf7a3ca9c02b05ebef8b59b139ac398 /examples/network/secureudpclient/association.cpp
parent8e1e275f8f45fab9d035e86c9caba1f03db43373 (diff)
QDtls - use conventional names
More Qt-style and more natural, also, shorter names. Change-Id: I97bd68a8614126d518a3853027661435dc4e080d Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples/network/secureudpclient/association.cpp')
-rw-r--r--examples/network/secureudpclient/association.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/network/secureudpclient/association.cpp b/examples/network/secureudpclient/association.cpp
index 02009fe233..6b510909f1 100644
--- a/examples/network/secureudpclient/association.cpp
+++ b/examples/network/secureudpclient/association.cpp
@@ -74,8 +74,8 @@ DtlsAssociation::DtlsAssociation(const QHostAddress &address, quint16 port,
DtlsAssociation::~DtlsAssociation()
{
- if (crypto.connectionEncrypted())
- crypto.sendShutdownAlert(&socket);
+ if (crypto.isConnectionEncrypted())
+ crypto.shutdown(&socket);
}
void DtlsAssociation::startHandshake()
@@ -108,7 +108,7 @@ void DtlsAssociation::readyRead()
}
dgram.resize(bytesRead);
- if (crypto.connectionEncrypted()) {
+ if (crypto.isConnectionEncrypted()) {
const QByteArray plainText = crypto.decryptDatagram(&socket, dgram);
if (plainText.size()) {
emit serverResponse(name, dgram, plainText);
@@ -128,7 +128,7 @@ void DtlsAssociation::readyRead()
emit errorMessage(tr("%1: handshake error - %2").arg(name, crypto.dtlsErrorString()));
return;
}
- if (crypto.connectionEncrypted()) {
+ if (crypto.isConnectionEncrypted()) {
emit infoMessage(tr("%1: encrypted connection established!").arg(name));
pingTimer.start();
pingTimeout();