diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2018-03-15 14:26:26 +0100 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2018-06-21 17:01:03 +0000 |
commit | ed775e794c72b237d148fd7d3ea248c803c30075 (patch) | |
tree | 12931bd47d1691b19472b88c1f4b4319d7847e18 /examples/network/secureudpserver/mainwindow.ui | |
parent | d502d883fd104aa7a6b20cd49d1ea4c92715df71 (diff) |
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 <timur.pocheptsov@qt.io>
Diffstat (limited to 'examples/network/secureudpserver/mainwindow.ui')
-rw-r--r-- | examples/network/secureudpserver/mainwindow.ui | 207 |
1 files changed, 207 insertions, 0 deletions
diff --git a/examples/network/secureudpserver/mainwindow.ui b/examples/network/secureudpserver/mainwindow.ui new file mode 100644 index 0000000000..e25e19921b --- /dev/null +++ b/examples/network/secureudpserver/mainwindow.ui @@ -0,0 +1,207 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>MainWindow</class> + <widget class="QMainWindow" name="MainWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>1090</width> + <height>670</height> + </rect> + </property> + <property name="minimumSize"> + <size> + <width>1090</width> + <height>670</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>1090</width> + <height>670</height> + </size> + </property> + <property name="windowTitle"> + <string>DTLS server</string> + </property> + <widget class="QWidget" name="centralWidget"> + <widget class="QWidget" name="layoutWidget"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>1050</width> + <height>576</height> + </rect> + </property> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QGroupBox" name="infoBox"> + <property name="minimumSize"> + <size> + <width>520</width> + <height>540</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>520</width> + <height>540</height> + </size> + </property> + <property name="title"> + <string>Dtls server info:</string> + </property> + <property name="flat"> + <bool>true</bool> + </property> + <widget class="QTextEdit" name="serverInfo"> + <property name="geometry"> + <rect> + <x>10</x> + <y>30</y> + <width>500</width> + <height>500</height> + </rect> + </property> + <property name="minimumSize"> + <size> + <width>500</width> + <height>500</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>500</width> + <height>500</height> + </size> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + </widget> + </item> + <item> + <widget class="QGroupBox" name="groupBox"> + <property name="minimumSize"> + <size> + <width>520</width> + <height>540</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>520</width> + <height>540</height> + </size> + </property> + <property name="title"> + <string>Received messages:</string> + </property> + <property name="flat"> + <bool>true</bool> + </property> + <widget class="QTextEdit" name="messages"> + <property name="geometry"> + <rect> + <x>10</x> + <y>30</y> + <width>500</width> + <height>500</height> + </rect> + </property> + <property name="minimumSize"> + <size> + <width>500</width> + <height>500</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>500</width> + <height>500</height> + </size> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="startButton"> + <property name="text"> + <string>Start listening</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="quitButton"> + <property name="text"> + <string>Quit</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + </layout> + </widget> + </widget> + <widget class="QMenuBar" name="menuBar"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>1090</width> + <height>22</height> + </rect> + </property> + </widget> + <widget class="QToolBar" name="mainToolBar"> + <attribute name="toolBarArea"> + <enum>TopToolBarArea</enum> + </attribute> + <attribute name="toolBarBreak"> + <bool>false</bool> + </attribute> + </widget> + <widget class="QStatusBar" name="statusBar"/> + </widget> + <layoutdefault spacing="6" margin="11"/> + <resources/> + <connections/> +</ui> |