From 5157630ce205b068509b7dae608ef1170c2164ee Mon Sep 17 00:00:00 2001 From: p2r3 Date: Tue, 15 Oct 2024 16:06:44 +0300 Subject: [PATCH] make the tcp console port a constant --- globals.cpp | 4 ++-- globals.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/globals.cpp b/globals.cpp index a0caea6..0d54abe 100644 --- a/globals.cpp +++ b/globals.cpp @@ -5,5 +5,5 @@ const std::filesystem::path TEMP_DIR = std::filesystem::temp_directory_path() / "spplice-cpp"; // Holds the current package installation state int SPPLICE_INSTALL_STATE = 0; // 0 - idle; 1 - installing; 2 - installed -// Telnet communication port between Portal 2 and Spplice -int SPPLICE_NETCON_PORT = 22333; +// TCP communication port between Portal 2 and Spplice +const int SPPLICE_NETCON_PORT = 22333; diff --git a/globals.h b/globals.h index 700268b..e68aa73 100644 --- a/globals.h +++ b/globals.h @@ -8,6 +8,6 @@ extern const std::filesystem::path TEMP_DIR; extern int SPPLICE_INSTALL_STATE; -extern int SPPLICE_NETCON_PORT; +extern const int SPPLICE_NETCON_PORT; #endif