summaryrefslogtreecommitdiffstats
path: root/examples/network/multistreamserver/server.h
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2016-08-03 09:50:55 +0300
committerAlex Trotsenko <alex1973tr@gmail.com>2016-08-03 11:46:21 +0000
commit5a133a404ebaa5233d5370ace10ba9532b9c6adc (patch)
tree9544da1252cf7d7aff1d195186c160235bf5c49b /examples/network/multistreamserver/server.h
parent733c4de36e71fa58dc444a181d725bfa46699a16 (diff)
Polish SCTP examples
- Introduce a common header file for client and server; - Update license headers; - Fix minor issues. Change-Id: I3fc42fd5ba32141c702fc6679a27bf0b6a16fd26 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'examples/network/multistreamserver/server.h')
-rw-r--r--examples/network/multistreamserver/server.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/examples/network/multistreamserver/server.h b/examples/network/multistreamserver/server.h
index 6d01f7a238..d9a38e61a4 100644
--- a/examples/network/multistreamserver/server.h
+++ b/examples/network/multistreamserver/server.h
@@ -1,12 +1,22 @@
/****************************************************************************
**
** Copyright (C) 2016 Alex Trotsenko <alex1973tr@gmail.com>
-** Contact: http://www.qt.io/licensing/
+** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** BSD License Usage
+** Alternatively, you may use this file under the terms of the BSD license
+** as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
@@ -71,14 +81,6 @@ private slots:
void writeDatagram(QSctpSocket *to, const QByteArray &ba);
private:
- enum ChannelNumber {
- Movie = 0,
- Time = 1,
- Chat = 2,
-
- NumberOfChannels = 3
- };
-
QVector<Provider *> providers;
QSctpServer *sctpServer;
QList<QSctpSocket *> connections;