qt5base-lts/examples/network
Marc Mutz c6a3507de2 SecureUDPServer example: use std::unique_ptr instead of QSharedPointer
The only reason the code used QSharedPointer is that it used QVector
to hold a collection of them, and QVector infamously cannot hold
move-only types such as std::unique_ptr.

Fix by using std::vector<std::unique_ptr> instead. Also, pass the
objeccts into non-sink functions by raw pointer instead of shared_ptr.

As a drive-by, replace clear-following-iterate by the for-exchanged
pattern.

Change-Id: I605fbb98af840c1b93eab9e65c07defd6e7b39e1
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2019-05-15 14:40:23 +02:00
..
bearermonitor Migrate Windows system libs to external dependencies 2019-05-08 08:30:02 +00:00
blockingfortuneclient Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
broadcastreceiver qtlite: Skip building examples when configured with no-feature-udpsocket 2018-01-11 12:37:50 +00:00
broadcastsender qtlite: Skip building examples when configured with no-feature-udpsocket 2018-01-11 12:37:50 +00:00
dnslookup Merge remote-tracking branch 'origin/5.12' into 5.13 2019-02-19 01:00:08 +01:00
doc Document DTLS examples 2018-08-09 03:52:13 +00:00
download Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
downloadmanager Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
fortuneclient qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
fortuneserver Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
googlesuggest Fix some deprecation warnings in examples 2019-02-06 22:12:23 +00:00
http HTTP example: use std::unique_ptr instead of QScopedPointer 2019-05-15 11:03:52 +02:00
loopback Fix usage of QGuiApplication::set/resetOverrideCursor 2018-11-05 21:57:43 +00:00
multicastreceiver qtlite: Skip building examples when configured with no-feature-udpsocket 2018-01-11 12:37:50 +00:00
multicastsender qtlite: Skip building examples when configured with no-feature-udpsocket 2018-01-11 12:37:50 +00:00
multistreamclient Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
multistreamserver Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
network-chat Network examples: cleanup foreach usage 2019-01-06 13:39:49 +00:00
securesocketclient QtBase: compile examples with QT_DISABLE_DEPRECATED_BEFORE=0x050d00 2019-02-13 05:55:46 +00:00
secureudpclient Document DTLS examples 2018-08-09 03:52:13 +00:00
secureudpserver SecureUDPServer example: use std::unique_ptr instead of QSharedPointer 2019-05-15 14:40:23 +02:00
shared Polish SCTP examples 2016-08-03 11:46:21 +00:00
threadedfortuneserver Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
torrent Torrent example: Replace the last Java-style iterator with STL ones 2019-05-23 13:55:40 +02:00
network.pro Fix builds without DTLS 2018-10-09 13:14:42 +00:00
README Remove references to demos from docs. 2011-07-05 19:57:54 +02:00

Qt is provided with an extensive set of network classes to support both
client-based and server side network programming.

These examples demonstrate the fundamental aspects of network programming
with Qt.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.