From ed775e794c72b237d148fd7d3ea248c803c30075 Mon Sep 17 00:00:00 2001 From: Timur Pocheptsov Date: Thu, 15 Mar 2018 14:26:26 +0100 Subject: Add a secure UDP server example It's a simple DTLS server, implemented with QUdpSocket, QDtlsClientVerifier and QDtls. The server is configured to use PSK only (it has no certificate/key). The server uses a single QUdpSocket socket and de-multiplexes UDP datagrams internally (thus it can work with several clients simultaneously). Future update will probably add more options (like configuring with certificate/key, etc). For now - it's as minimalistic and simple as possible. Task-number: QTBUG-67596 Change-Id: Ic7d18dbab6dbcc9ed44c82e69a2b364df24aa256 Reviewed-by: Timur Pocheptsov --- examples/network/secureudpserver/nicselector.ui | 144 ++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 examples/network/secureudpserver/nicselector.ui (limited to 'examples/network/secureudpserver/nicselector.ui') diff --git a/examples/network/secureudpserver/nicselector.ui b/examples/network/secureudpserver/nicselector.ui new file mode 100644 index 0000000000..b0ba376b66 --- /dev/null +++ b/examples/network/secureudpserver/nicselector.ui @@ -0,0 +1,144 @@ + + + NicSelector + + + + 0 + 0 + 373 + 213 + + + + IP and port + + + + + + QLayout::SetFixedSize + + + + + Listen on address: + + + + + + + + 250 + 0 + + + + + + + + Qt::Vertical + + + QSizePolicy::Fixed + + + + 20 + 20 + + + + + + + + + + QLayout::SetFixedSize + + + + + Port: + + + + + + + + 0 + 0 + + + + + + + + Qt::Vertical + + + QSizePolicy::Fixed + + + + 20 + 20 + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + NicSelector + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + NicSelector + reject() + + + 316 + 260 + + + 286 + 274 + + + + + -- cgit v1.2.3