Octave: Change default port number and add custom port number to Preferences

This commit is contained in:
Magne Sjaastad committed 2024-06-03 10:17:21 +02:00
1 parent 3f535e5b62
commit 1c899df063
35 files changed
+113 -39

No files matched your search

@@ -16,9 +16,21 @@
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include <QDataStream>
namespace riOctavePlugin
{
const int qtDataStreamVersion = QDataStream::Qt_4_0;
// 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";
}
} // namespace riOctavePlugin