From 033a1a279311fd2eda02e4c90657542f688b5f8b Mon Sep 17 00:00:00 2001 From: Timur Pocheptsov Date: Fri, 23 Mar 2018 12:30:31 +0100 Subject: Add a secure UDP client example A simple application that establishes DTLS connection(s) and sends/receives datagrams. Class DtlsAssociation is essentially a QUdpSocket|QDtls pair: it initiates a handshake, handles timeouts and errors. After establishing an encrypted connection it sends messages to the server and processes responses. Task-number: QTBUG-67596 Change-Id: I92d481b7dfd2459e6a93c754b338a2e897a7feaf Reviewed-by: Timur Pocheptsov --- examples/network/secureudpclient/mainwindow.ui | 198 +++++++++++++++++++++++++ 1 file changed, 198 insertions(+) create mode 100644 examples/network/secureudpclient/mainwindow.ui (limited to 'examples/network/secureudpclient/mainwindow.ui') diff --git a/examples/network/secureudpclient/mainwindow.ui b/examples/network/secureudpclient/mainwindow.ui new file mode 100644 index 0000000000..59a31974ee --- /dev/null +++ b/examples/network/secureudpclient/mainwindow.ui @@ -0,0 +1,198 @@ + + + MainWindow + + + + 0 + 0 + 1200 + 550 + + + + + 1200 + 550 + + + + + 1200 + 550 + + + + DTLS client + + + + + + + + + + + + 0 + 0 + + + + + 590 + 400 + + + + DTLS info messages: + + + true + + + + + 10 + 30 + 570 + 360 + + + + + 570 + 360 + + + + + 570 + 360 + + + + false + + + QFrame::StyledPanel + + + QFrame::Plain + + + true + + + + + + + + + + + + Connect ... + + + + + + + Shutdown connections + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 580 + 490 + + + + + 580 + 490 + + + + Received datagrams: + + + true + + + + + 10 + 30 + 560 + 450 + + + + + 560 + 450 + + + + + 560 + 450 + + + + QFrame::StyledPanel + + + QFrame::Plain + + + true + + + + + + + + + + + + 0 + 0 + 1200 + 22 + + + + + + + + -- cgit v1.2.3