2018-02-20 08:03:37 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2019-01-09 15:21:38 +01:00
|
|
|
// Copyright (C) 2018- Equinor ASA
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2018-02-20 08:03:37 +01:00
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2018-02-20 08:03:37 +01:00
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2018-02-20 08:03:37 +01:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2024-06-03 07:46:58 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2018-02-20 08:03:37 +01:00
|
|
|
#include <QDataStream>
|
|
|
|
|
|
2024-09-30 11:21:17 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
2018-02-20 08:03:37 +01:00
|
|
|
namespace riOctavePlugin
|
|
|
|
|
{
|
2019-09-06 10:40:57 +02:00
|
|
|
const int qtDataStreamVersion = QDataStream::Qt_4_0;
|
2024-06-03 07:46:58 +02:00
|
|
|
|
|
|
|
|
// https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
|
|
|
|
|
// Use a port number in the dynamic/private range (49152-65535)
|
|
|
|
|
const int defaultPortNumber = 52025;
|
|
|
|
|
|
|
|
|
|
inline const std::string portNumberKey()
|
|
|
|
|
{
|
|
|
|
|
return "RESINSIGHT_OCTAVE_PORT_NUMBER";
|
2018-02-20 08:03:37 +01:00
|
|
|
}
|
2024-06-03 07:46:58 +02:00
|
|
|
|
|
|
|
|
} // namespace riOctavePlugin
|