From d55cf5ee818e76a6fa0c17bdf76914d7b86f1925 Mon Sep 17 00:00:00 2001 From: Max <51083570+DRdrProfessor@users.noreply.github.com> Date: Sun, 24 Dec 2023 18:23:19 +0100 Subject: [PATCH] reworking proj with OpenSSL --- CMakeLists.txt | 2 +- .../.cmake/api/v1/query/cache-v2 | 0 .../.cmake/api/v1/query/cmakeFiles-v1 | 0 .../.cmake/api/v1/query/codemodel-v2 | 0 .../.cmake/api/v1/query/toolchains-v1 | 0 .../reply/cache-v2-c525c7eeda27dc1e9c2e.json | 1651 +++++++++++++++++ .../cmakeFiles-v1-a8aaa00d4fa8b05c254c.json | 150 ++ .../codemodel-v2-27215020dd72ca5d2c67.json | 171 ++ ...irectory-.-Debug-f5ebdc15457944623624.json | 14 + ...ectory-src-Debug-b6cf2213fc5053b67c22.json | 14 + ...src.client-Debug-1c4a3b19c39f3daa3331.json | 14 + ...ry-src.net-Debug-47a3c3dc6aa08e0f0c88.json | 14 + ...et.sockets-Debug-ce26001da8dfcf6ecc09.json | 14 + ...et.threads-Debug-6e3b6b31cb784f3b97cd.json | 14 + ...src.server-Debug-ed01e06ea8a73e000890.json | 14 + .../reply/index-2023-12-24T17-15-41-0520.json | 108 ++ ...rget-netex-Debug-bfaae46eb44fcd1c27b4.json | 237 +++ ...tex_client-Debug-7bb063a5e032437645d0.json | 190 ++ ...-netex_svr-Debug-eceba98322d47e70e99c.json | 190 ++ .../toolchains-v1-d6c77e95d91a665f7a41.json | 50 + cmake-build-debug/.ninja_deps | Bin 0 -> 13940 bytes cmake-build-debug/.ninja_log | 21 + .../Testing/Temporary/LastTest.log | 3 + cmake-build-debug/build.ninja | 485 +++++ src/CMakeLists.txt | 9 +- src/client/CMakeLists.txt | 6 + src/client/main.c | 8 + src/include/CMakeLists.txt | 4 - src/net/CMakeLists.txt | 11 + src/{ => net}/exp_list.c | 0 src/net/include/CMakeLists.txt | 8 + src/{ => net}/include/net.h | 0 src/{ => net}/include/netex.h | 0 src/net/include/netexssl.h | 11 + src/net/include/netexthreads.h | 10 + src/{ => net}/include/sockets.h | 0 src/net/netex.c | 20 + src/{ => net}/sockets/CMakeLists.txt | 2 +- src/{ => net}/sockets/client.c | 4 +- src/{ => net}/sockets/communication.h | 0 src/{ => net}/sockets/server.c | 25 +- src/{ => net}/sockets/sock_helper.c | 6 +- src/{ => net}/sockets/thread_manager.c | 6 +- src/{ => net}/sockets/thread_manager.h | 0 src/net/threads/CMakeLists.txt | 4 + src/net/threads/thread_manager.c | 18 + src/server/CMakeLists.txt | 7 +- src/server/server.c | 20 + 48 files changed, 3499 insertions(+), 36 deletions(-) create mode 100644 cmake-build-debug/.cmake/api/v1/query/cache-v2 create mode 100644 cmake-build-debug/.cmake/api/v1/query/cmakeFiles-v1 create mode 100644 cmake-build-debug/.cmake/api/v1/query/codemodel-v2 create mode 100644 cmake-build-debug/.cmake/api/v1/query/toolchains-v1 create mode 100644 cmake-build-debug/.cmake/api/v1/reply/cache-v2-c525c7eeda27dc1e9c2e.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-a8aaa00d4fa8b05c254c.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-27215020dd72ca5d2c67.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/directory-src-Debug-b6cf2213fc5053b67c22.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/directory-src.client-Debug-1c4a3b19c39f3daa3331.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/directory-src.net-Debug-47a3c3dc6aa08e0f0c88.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/directory-src.net.sockets-Debug-ce26001da8dfcf6ecc09.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/directory-src.net.threads-Debug-6e3b6b31cb784f3b97cd.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/directory-src.server-Debug-ed01e06ea8a73e000890.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/index-2023-12-24T17-15-41-0520.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/target-netex-Debug-bfaae46eb44fcd1c27b4.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/target-netex_client-Debug-7bb063a5e032437645d0.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/target-netex_svr-Debug-eceba98322d47e70e99c.json create mode 100644 cmake-build-debug/.cmake/api/v1/reply/toolchains-v1-d6c77e95d91a665f7a41.json create mode 100644 cmake-build-debug/.ninja_deps create mode 100644 cmake-build-debug/.ninja_log create mode 100644 cmake-build-debug/Testing/Temporary/LastTest.log create mode 100644 cmake-build-debug/build.ninja create mode 100644 src/client/CMakeLists.txt create mode 100644 src/client/main.c delete mode 100644 src/include/CMakeLists.txt rename src/{ => net}/exp_list.c (100%) create mode 100644 src/net/include/CMakeLists.txt rename src/{ => net}/include/net.h (100%) rename src/{ => net}/include/netex.h (100%) create mode 100644 src/net/include/netexssl.h create mode 100644 src/net/include/netexthreads.h rename src/{ => net}/include/sockets.h (100%) create mode 100644 src/net/netex.c rename src/{ => net}/sockets/CMakeLists.txt (80%) rename src/{ => net}/sockets/client.c (96%) rename src/{ => net}/sockets/communication.h (100%) rename src/{ => net}/sockets/server.c (84%) rename src/{ => net}/sockets/sock_helper.c (87%) rename src/{ => net}/sockets/thread_manager.c (84%) rename src/{ => net}/sockets/thread_manager.h (100%) create mode 100644 src/net/threads/CMakeLists.txt create mode 100644 src/net/threads/thread_manager.c diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ec649c..05a8870 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,4 +20,4 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${PROJ_DEB_BUILD_DIR}/bin) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJ_DEB_BUILD_DIR}/bin) -add_subdirectory(src) +add_subdirectory(src) \ No newline at end of file diff --git a/cmake-build-debug/.cmake/api/v1/query/cache-v2 b/cmake-build-debug/.cmake/api/v1/query/cache-v2 new file mode 100644 index 0000000..e69de29 diff --git a/cmake-build-debug/.cmake/api/v1/query/cmakeFiles-v1 b/cmake-build-debug/.cmake/api/v1/query/cmakeFiles-v1 new file mode 100644 index 0000000..e69de29 diff --git a/cmake-build-debug/.cmake/api/v1/query/codemodel-v2 b/cmake-build-debug/.cmake/api/v1/query/codemodel-v2 new file mode 100644 index 0000000..e69de29 diff --git a/cmake-build-debug/.cmake/api/v1/query/toolchains-v1 b/cmake-build-debug/.cmake/api/v1/query/toolchains-v1 new file mode 100644 index 0000000..e69de29 diff --git a/cmake-build-debug/.cmake/api/v1/reply/cache-v2-c525c7eeda27dc1e9c2e.json b/cmake-build-debug/.cmake/api/v1/reply/cache-v2-c525c7eeda27dc1e9c2e.json new file mode 100644 index 0000000..8510b67 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/cache-v2-c525c7eeda27dc1e9c2e.json @@ -0,0 +1,1651 @@ +{ + "entries" : + [ + { + "name" : "CMAKE_ADDR2LINE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/addr2line" + }, + { + "name" : "CMAKE_AR", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/ar" + }, + { + "name" : "CMAKE_BUILD_TYPE", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ..." + } + ], + "type" : "STRING", + "value" : "Debug" + }, + { + "name" : "CMAKE_CACHEFILE_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "This is the directory where this CMakeCache.txt was created" + } + ], + "type" : "INTERNAL", + "value" : "/home/max/GitHub/netex/cmake-build-debug" + }, + { + "name" : "CMAKE_CACHE_MAJOR_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Major version of cmake used to create the current loaded cache" + } + ], + "type" : "INTERNAL", + "value" : "3" + }, + { + "name" : "CMAKE_CACHE_MINOR_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Minor version of cmake used to create the current loaded cache" + } + ], + "type" : "INTERNAL", + "value" : "27" + }, + { + "name" : "CMAKE_CACHE_PATCH_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Patch version of cmake used to create the current loaded cache" + } + ], + "type" : "INTERNAL", + "value" : "8" + }, + { + "name" : "CMAKE_COLOR_DIAGNOSTICS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Enable colored diagnostics throughout." + } + ], + "type" : "BOOL", + "value" : "ON" + }, + { + "name" : "CMAKE_COMMAND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to CMake executable." + } + ], + "type" : "INTERNAL", + "value" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake" + }, + { + "name" : "CMAKE_CPACK_COMMAND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to cpack program executable." + } + ], + "type" : "INTERNAL", + "value" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cpack" + }, + { + "name" : "CMAKE_CTEST_COMMAND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to ctest program executable." + } + ], + "type" : "INTERNAL", + "value" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/ctest" + }, + { + "name" : "CMAKE_C_COMPILER", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "C compiler" + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/cc" + }, + { + "name" : "CMAKE_C_COMPILER_AR", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler" + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/gcc-ar" + }, + { + "name" : "CMAKE_C_COMPILER_RANLIB", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler" + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/gcc-ranlib" + }, + { + "name" : "CMAKE_C_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_C_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "-g" + }, + { + "name" : "CMAKE_C_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "-Os -DNDEBUG" + }, + { + "name" : "CMAKE_C_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "-O3 -DNDEBUG" + }, + { + "name" : "CMAKE_C_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "-O2 -g -DNDEBUG" + }, + { + "name" : "CMAKE_DLLTOOL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "CMAKE_DLLTOOL-NOTFOUND" + }, + { + "name" : "CMAKE_EXECUTABLE_FORMAT", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Executable file format" + } + ], + "type" : "INTERNAL", + "value" : "ELF" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXPORT_COMPILE_COMMANDS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Enable/Disable output of compile commands during generation." + } + ], + "type" : "BOOL", + "value" : "" + }, + { + "name" : "CMAKE_EXTRA_GENERATOR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of external makefile project generator." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_FIND_PACKAGE_REDIRECTS_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake." + } + ], + "type" : "STATIC", + "value" : "/home/max/GitHub/netex/cmake-build-debug/CMakeFiles/pkgRedirects" + }, + { + "name" : "CMAKE_GENERATOR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of generator." + } + ], + "type" : "INTERNAL", + "value" : "Ninja" + }, + { + "name" : "CMAKE_GENERATOR_INSTANCE", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Generator instance identifier." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_GENERATOR_PLATFORM", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of generator platform." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_GENERATOR_TOOLSET", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of generator toolset." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_HOME_DIRECTORY", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Source directory with the top level CMakeLists.txt file for this project" + } + ], + "type" : "INTERNAL", + "value" : "/home/max/GitHub/netex" + }, + { + "name" : "CMAKE_INSTALL_PREFIX", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Install path prefix, prepended onto install directories." + } + ], + "type" : "PATH", + "value" : "/usr/local" + }, + { + "name" : "CMAKE_INSTALL_SO_NO_EXE", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Install .so files without execute permission." + } + ], + "type" : "INTERNAL", + "value" : "0" + }, + { + "name" : "CMAKE_LINKER", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/ld" + }, + { + "name" : "CMAKE_MAKE_PROGRAM", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "No help, variable specified on the command line." + } + ], + "type" : "UNINITIALIZED", + "value" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/ninja/linux/x64/ninja" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_NM", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/nm" + }, + { + "name" : "CMAKE_NUMBER_OF_MAKEFILES", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "number of local generators" + } + ], + "type" : "INTERNAL", + "value" : "7" + }, + { + "name" : "CMAKE_OBJCOPY", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/objcopy" + }, + { + "name" : "CMAKE_OBJDUMP", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/objdump" + }, + { + "name" : "CMAKE_PLATFORM_INFO_INITIALIZED", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Platform information initialized" + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "CMAKE_PROJECT_DESCRIPTION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "" + }, + { + "name" : "CMAKE_PROJECT_HOMEPAGE_URL", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "" + }, + { + "name" : "CMAKE_PROJECT_NAME", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "netex" + }, + { + "name" : "CMAKE_RANLIB", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/ranlib" + }, + { + "name" : "CMAKE_READELF", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/readelf" + }, + { + "name" : "CMAKE_ROOT", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to CMake installation." + } + ], + "type" : "INTERNAL", + "value" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SKIP_INSTALL_RPATH", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "If set, runtime paths are not added when installing shared libraries, but are added when building." + } + ], + "type" : "BOOL", + "value" : "NO" + }, + { + "name" : "CMAKE_SKIP_RPATH", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "If set, runtime paths are not added when using shared libraries." + } + ], + "type" : "BOOL", + "value" : "NO" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STRIP", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/strip" + }, + { + "name" : "CMAKE_TAPI", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "CMAKE_TAPI-NOTFOUND" + }, + { + "name" : "CMAKE_UNAME", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "uname command" + } + ], + "type" : "INTERNAL", + "value" : "/usr/bin/uname" + }, + { + "name" : "CMAKE_VERBOSE_MAKEFILE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo." + } + ], + "type" : "BOOL", + "value" : "FALSE" + }, + { + "name" : "FIND_PACKAGE_MESSAGE_DETAILS_OpenSSL", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Details about finding OpenSSL" + } + ], + "type" : "INTERNAL", + "value" : "[/usr/lib/libcrypto.so][/usr/include][c ][v3.1.2()]" + }, + { + "name" : "OPENSSL_CRYPTO_LIBRARY", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a library." + } + ], + "type" : "FILEPATH", + "value" : "/usr/lib/libcrypto.so" + }, + { + "name" : "OPENSSL_INCLUDE_DIR", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a file." + } + ], + "type" : "PATH", + "value" : "/usr/include" + }, + { + "name" : "OPENSSL_SSL_LIBRARY", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a library." + } + ], + "type" : "FILEPATH", + "value" : "/usr/lib/libssl.so" + }, + { + "name" : "PKG_CONFIG_ARGN", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Arguments to supply to pkg-config" + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "PKG_CONFIG_EXECUTABLE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "pkg-config executable" + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/pkg-config" + }, + { + "name" : "_CMAKE_LINKER_PUSHPOP_STATE_SUPPORTED", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "linker supports push/pop state" + } + ], + "type" : "INTERNAL", + "value" : "TRUE" + }, + { + "name" : "_OPENSSL_CFLAGS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_CFLAGS_I", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_CFLAGS_OTHER", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_FOUND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "_OPENSSL_INCLUDEDIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "/usr/include" + }, + { + "name" : "_OPENSSL_INCLUDE_DIRS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_LDFLAGS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "-L/usr/lib;-lssl;-lcrypto" + }, + { + "name" : "_OPENSSL_LDFLAGS_OTHER", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_LIBDIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "/usr/lib" + }, + { + "name" : "_OPENSSL_LIBRARIES", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "ssl;crypto" + }, + { + "name" : "_OPENSSL_LIBRARY_DIRS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "/usr/lib" + }, + { + "name" : "_OPENSSL_LIBS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_LIBS_L", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_LIBS_OTHER", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_LIBS_PATHS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_MODULE_NAME", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "openssl" + }, + { + "name" : "_OPENSSL_PREFIX", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "/usr" + }, + { + "name" : "_OPENSSL_STATIC_CFLAGS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_STATIC_CFLAGS_I", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_STATIC_CFLAGS_OTHER", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_STATIC_INCLUDE_DIRS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_STATIC_LDFLAGS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "-L/usr/lib;-lssl;-L/usr/lib;-ldl;-pthread;-lcrypto;-ldl;-pthread" + }, + { + "name" : "_OPENSSL_STATIC_LDFLAGS_OTHER", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "-pthread;-pthread" + }, + { + "name" : "_OPENSSL_STATIC_LIBDIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_STATIC_LIBRARIES", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "ssl;dl;crypto;dl" + }, + { + "name" : "_OPENSSL_STATIC_LIBRARY_DIRS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "/usr/lib;/usr/lib" + }, + { + "name" : "_OPENSSL_STATIC_LIBS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_STATIC_LIBS_L", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_STATIC_LIBS_OTHER", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_STATIC_LIBS_PATHS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "3.1.2" + }, + { + "name" : "_OPENSSL_openssl_INCLUDEDIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_openssl_LIBDIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_openssl_PREFIX", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "_OPENSSL_openssl_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "__pkg_config_arguments__OPENSSL", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "QUIET;openssl" + }, + { + "name" : "__pkg_config_checked__OPENSSL", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "netex_BINARY_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "/home/max/GitHub/netex/cmake-build-debug" + }, + { + "name" : "netex_IS_TOP_LEVEL", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "ON" + }, + { + "name" : "netex_SOURCE_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "/home/max/GitHub/netex" + }, + { + "name" : "pkgcfg_lib__OPENSSL_crypto", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a library." + } + ], + "type" : "FILEPATH", + "value" : "/usr/lib/libcrypto.so" + }, + { + "name" : "pkgcfg_lib__OPENSSL_ssl", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a library." + } + ], + "type" : "FILEPATH", + "value" : "/usr/lib/libssl.so" + }, + { + "name" : "prefix_result", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "/usr/lib" + } + ], + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-a8aaa00d4fa8b05c254c.json b/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-a8aaa00d4fa8b05c254c.json new file mode 100644 index 0000000..265e591 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-a8aaa00d4fa8b05c254c.json @@ -0,0 +1,150 @@ +{ + "inputs" : + [ + { + "path" : "CMakeLists.txt" + }, + { + "isGenerated" : true, + "path" : "cmake-build-debug/CMakeFiles/3.27.8/CMakeSystem.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeSystemSpecificInitialize.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/Linux-Initialize.cmake" + }, + { + "isGenerated" : true, + "path" : "cmake-build-debug/CMakeFiles/3.27.8/CMakeCCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeSystemSpecificInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeGenericSystem.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeInitializeConfigs.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/Linux.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/UnixPaths.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeCInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeLanguageInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Compiler/GNU-C.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Compiler/GNU.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Compiler/CMakeCommonCompilerMacros.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/Linux-GNU-C.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/Linux-GNU.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeCommonLanguageInclude.cmake" + }, + { + "path" : "src/CMakeLists.txt" + }, + { + "path" : "src/net/CMakeLists.txt" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindOpenSSL.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindPkgConfig.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindPackageMessage.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindPackageMessage.cmake" + }, + { + "path" : "src/net/threads/CMakeLists.txt" + }, + { + "path" : "src/net/sockets/CMakeLists.txt" + }, + { + "path" : "src/server/CMakeLists.txt" + }, + { + "path" : "src/client/CMakeLists.txt" + } + ], + "kind" : "cmakeFiles", + "paths" : + { + "build" : "/home/max/GitHub/netex/cmake-build-debug", + "source" : "/home/max/GitHub/netex" + }, + "version" : + { + "major" : 1, + "minor" : 0 + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-27215020dd72ca5d2c67.json b/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-27215020dd72ca5d2c67.json new file mode 100644 index 0000000..192a855 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-27215020dd72ca5d2c67.json @@ -0,0 +1,171 @@ +{ + "configurations" : + [ + { + "directories" : + [ + { + "build" : ".", + "childIndexes" : + [ + 1 + ], + "jsonFile" : "directory-.-Debug-f5ebdc15457944623624.json", + "minimumCMakeVersion" : + { + "string" : "3.15" + }, + "projectIndex" : 0, + "source" : "." + }, + { + "build" : "src", + "childIndexes" : + [ + 2, + 5, + 6 + ], + "jsonFile" : "directory-src-Debug-b6cf2213fc5053b67c22.json", + "minimumCMakeVersion" : + { + "string" : "3.15" + }, + "parentIndex" : 0, + "projectIndex" : 0, + "source" : "src" + }, + { + "build" : "src/net", + "childIndexes" : + [ + 3, + 4 + ], + "jsonFile" : "directory-src.net-Debug-47a3c3dc6aa08e0f0c88.json", + "minimumCMakeVersion" : + { + "string" : "3.15" + }, + "parentIndex" : 1, + "projectIndex" : 0, + "source" : "src/net", + "targetIndexes" : + [ + 0 + ] + }, + { + "build" : "src/net/threads", + "jsonFile" : "directory-src.net.threads-Debug-6e3b6b31cb784f3b97cd.json", + "minimumCMakeVersion" : + { + "string" : "3.15" + }, + "parentIndex" : 2, + "projectIndex" : 0, + "source" : "src/net/threads" + }, + { + "build" : "src/net/sockets", + "jsonFile" : "directory-src.net.sockets-Debug-ce26001da8dfcf6ecc09.json", + "minimumCMakeVersion" : + { + "string" : "3.15" + }, + "parentIndex" : 2, + "projectIndex" : 0, + "source" : "src/net/sockets" + }, + { + "build" : "src/server", + "jsonFile" : "directory-src.server-Debug-ed01e06ea8a73e000890.json", + "minimumCMakeVersion" : + { + "string" : "3.15" + }, + "parentIndex" : 1, + "projectIndex" : 0, + "source" : "src/server", + "targetIndexes" : + [ + 2 + ] + }, + { + "build" : "src/client", + "jsonFile" : "directory-src.client-Debug-1c4a3b19c39f3daa3331.json", + "minimumCMakeVersion" : + { + "string" : "3.15" + }, + "parentIndex" : 1, + "projectIndex" : 0, + "source" : "src/client", + "targetIndexes" : + [ + 1 + ] + } + ], + "name" : "Debug", + "projects" : + [ + { + "directoryIndexes" : + [ + 0, + 1, + 2, + 3, + 4, + 5, + 6 + ], + "name" : "netex", + "targetIndexes" : + [ + 0, + 1, + 2 + ] + } + ], + "targets" : + [ + { + "directoryIndex" : 2, + "id" : "netex::@fa6dfe1ce2083cdf68d6", + "jsonFile" : "target-netex-Debug-bfaae46eb44fcd1c27b4.json", + "name" : "netex", + "projectIndex" : 0 + }, + { + "directoryIndex" : 6, + "id" : "netex_client::@8ca63c80a879d0067daa", + "jsonFile" : "target-netex_client-Debug-7bb063a5e032437645d0.json", + "name" : "netex_client", + "projectIndex" : 0 + }, + { + "directoryIndex" : 5, + "id" : "netex_svr::@2804e40980a64c7d7ad1", + "jsonFile" : "target-netex_svr-Debug-eceba98322d47e70e99c.json", + "name" : "netex_svr", + "projectIndex" : 0 + } + ] + } + ], + "kind" : "codemodel", + "paths" : + { + "build" : "/home/max/GitHub/netex/cmake-build-debug", + "source" : "/home/max/GitHub/netex" + }, + "version" : + { + "major" : 2, + "minor" : 6 + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json b/cmake-build-debug/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json new file mode 100644 index 0000000..3a67af9 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json @@ -0,0 +1,14 @@ +{ + "backtraceGraph" : + { + "commands" : [], + "files" : [], + "nodes" : [] + }, + "installers" : [], + "paths" : + { + "build" : ".", + "source" : "." + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/directory-src-Debug-b6cf2213fc5053b67c22.json b/cmake-build-debug/.cmake/api/v1/reply/directory-src-Debug-b6cf2213fc5053b67c22.json new file mode 100644 index 0000000..5682a7f --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/directory-src-Debug-b6cf2213fc5053b67c22.json @@ -0,0 +1,14 @@ +{ + "backtraceGraph" : + { + "commands" : [], + "files" : [], + "nodes" : [] + }, + "installers" : [], + "paths" : + { + "build" : "src", + "source" : "src" + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/directory-src.client-Debug-1c4a3b19c39f3daa3331.json b/cmake-build-debug/.cmake/api/v1/reply/directory-src.client-Debug-1c4a3b19c39f3daa3331.json new file mode 100644 index 0000000..1837bf4 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/directory-src.client-Debug-1c4a3b19c39f3daa3331.json @@ -0,0 +1,14 @@ +{ + "backtraceGraph" : + { + "commands" : [], + "files" : [], + "nodes" : [] + }, + "installers" : [], + "paths" : + { + "build" : "src/client", + "source" : "src/client" + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/directory-src.net-Debug-47a3c3dc6aa08e0f0c88.json b/cmake-build-debug/.cmake/api/v1/reply/directory-src.net-Debug-47a3c3dc6aa08e0f0c88.json new file mode 100644 index 0000000..f738db0 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/directory-src.net-Debug-47a3c3dc6aa08e0f0c88.json @@ -0,0 +1,14 @@ +{ + "backtraceGraph" : + { + "commands" : [], + "files" : [], + "nodes" : [] + }, + "installers" : [], + "paths" : + { + "build" : "src/net", + "source" : "src/net" + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/directory-src.net.sockets-Debug-ce26001da8dfcf6ecc09.json b/cmake-build-debug/.cmake/api/v1/reply/directory-src.net.sockets-Debug-ce26001da8dfcf6ecc09.json new file mode 100644 index 0000000..c357f47 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/directory-src.net.sockets-Debug-ce26001da8dfcf6ecc09.json @@ -0,0 +1,14 @@ +{ + "backtraceGraph" : + { + "commands" : [], + "files" : [], + "nodes" : [] + }, + "installers" : [], + "paths" : + { + "build" : "src/net/sockets", + "source" : "src/net/sockets" + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/directory-src.net.threads-Debug-6e3b6b31cb784f3b97cd.json b/cmake-build-debug/.cmake/api/v1/reply/directory-src.net.threads-Debug-6e3b6b31cb784f3b97cd.json new file mode 100644 index 0000000..048c773 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/directory-src.net.threads-Debug-6e3b6b31cb784f3b97cd.json @@ -0,0 +1,14 @@ +{ + "backtraceGraph" : + { + "commands" : [], + "files" : [], + "nodes" : [] + }, + "installers" : [], + "paths" : + { + "build" : "src/net/threads", + "source" : "src/net/threads" + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/directory-src.server-Debug-ed01e06ea8a73e000890.json b/cmake-build-debug/.cmake/api/v1/reply/directory-src.server-Debug-ed01e06ea8a73e000890.json new file mode 100644 index 0000000..b659a4c --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/directory-src.server-Debug-ed01e06ea8a73e000890.json @@ -0,0 +1,14 @@ +{ + "backtraceGraph" : + { + "commands" : [], + "files" : [], + "nodes" : [] + }, + "installers" : [], + "paths" : + { + "build" : "src/server", + "source" : "src/server" + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/index-2023-12-24T17-15-41-0520.json b/cmake-build-debug/.cmake/api/v1/reply/index-2023-12-24T17-15-41-0520.json new file mode 100644 index 0000000..49836be --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/index-2023-12-24T17-15-41-0520.json @@ -0,0 +1,108 @@ +{ + "cmake" : + { + "generator" : + { + "multiConfig" : false, + "name" : "Ninja" + }, + "paths" : + { + "cmake" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake", + "cpack" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cpack", + "ctest" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/ctest", + "root" : "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27" + }, + "version" : + { + "isDirty" : false, + "major" : 3, + "minor" : 27, + "patch" : 8, + "string" : "3.27.8", + "suffix" : "" + } + }, + "objects" : + [ + { + "jsonFile" : "codemodel-v2-27215020dd72ca5d2c67.json", + "kind" : "codemodel", + "version" : + { + "major" : 2, + "minor" : 6 + } + }, + { + "jsonFile" : "cache-v2-c525c7eeda27dc1e9c2e.json", + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + { + "jsonFile" : "cmakeFiles-v1-a8aaa00d4fa8b05c254c.json", + "kind" : "cmakeFiles", + "version" : + { + "major" : 1, + "minor" : 0 + } + }, + { + "jsonFile" : "toolchains-v1-d6c77e95d91a665f7a41.json", + "kind" : "toolchains", + "version" : + { + "major" : 1, + "minor" : 0 + } + } + ], + "reply" : + { + "cache-v2" : + { + "jsonFile" : "cache-v2-c525c7eeda27dc1e9c2e.json", + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + "cmakeFiles-v1" : + { + "jsonFile" : "cmakeFiles-v1-a8aaa00d4fa8b05c254c.json", + "kind" : "cmakeFiles", + "version" : + { + "major" : 1, + "minor" : 0 + } + }, + "codemodel-v2" : + { + "jsonFile" : "codemodel-v2-27215020dd72ca5d2c67.json", + "kind" : "codemodel", + "version" : + { + "major" : 2, + "minor" : 6 + } + }, + "toolchains-v1" : + { + "jsonFile" : "toolchains-v1-d6c77e95d91a665f7a41.json", + "kind" : "toolchains", + "version" : + { + "major" : 1, + "minor" : 0 + } + } + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/target-netex-Debug-bfaae46eb44fcd1c27b4.json b/cmake-build-debug/.cmake/api/v1/reply/target-netex-Debug-bfaae46eb44fcd1c27b4.json new file mode 100644 index 0000000..f5dbf71 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/target-netex-Debug-bfaae46eb44fcd1c27b4.json @@ -0,0 +1,237 @@ +{ + "artifacts" : + [ + { + "path" : "debug/bin/libnetex.so" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_library", + "target_link_libraries", + "set_target_properties", + "find_package", + "add_compile_options", + "target_include_directories", + "target_sources" + ], + "files" : + [ + "src/net/CMakeLists.txt", + "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindOpenSSL.cmake", + "CMakeLists.txt", + "src/net/threads/CMakeLists.txt", + "src/net/sockets/CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 2, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 6, + "parent" : 0 + }, + { + "command" : 3, + "file" : 0, + "line" : 5, + "parent" : 0 + }, + { + "file" : 1, + "parent" : 3 + }, + { + "command" : 2, + "file" : 1, + "line" : 741, + "parent" : 4 + }, + { + "file" : 2 + }, + { + "command" : 4, + "file" : 2, + "line" : 5, + "parent" : 6 + }, + { + "command" : 5, + "file" : 0, + "line" : 8, + "parent" : 0 + }, + { + "file" : 3 + }, + { + "command" : 6, + "file" : 3, + "line" : 3, + "parent" : 9 + }, + { + "file" : 4 + }, + { + "command" : 6, + "file" : 4, + "line" : 2, + "parent" : 11 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g -fPIC -fdiagnostics-color=always" + }, + { + "backtrace" : 7, + "fragment" : "-pthread" + } + ], + "defines" : + [ + { + "define" : "netex_EXPORTS" + } + ], + "includes" : + [ + { + "backtrace" : 8, + "path" : "/home/max/GitHub/netex/src/net/include" + } + ], + "language" : "C", + "sourceIndexes" : + [ + 0, + 1, + 2, + 4, + 5, + 6 + ] + } + ], + "id" : "netex::@fa6dfe1ce2083cdf68d6", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "", + "role" : "flags" + }, + { + "backtrace" : 2, + "fragment" : "/usr/lib/libssl.so", + "role" : "libraries" + }, + { + "backtrace" : 5, + "fragment" : "/usr/lib/libcrypto.so", + "role" : "libraries" + } + ], + "language" : "C" + }, + "name" : "netex", + "nameOnDisk" : "libnetex.so", + "paths" : + { + "build" : "src/net", + "source" : "src/net" + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0, + 1, + 2, + 4, + 5, + 6 + ] + }, + { + "name" : "Header Files", + "sourceIndexes" : + [ + 3, + 7 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/net/netex.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 10, + "compileGroupIndex" : 0, + "path" : "src/net/threads/thread_manager.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 12, + "compileGroupIndex" : 0, + "path" : "src/net/sockets/client.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 12, + "path" : "src/net/sockets/communication.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 12, + "compileGroupIndex" : 0, + "path" : "src/net/sockets/sock_helper.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 12, + "compileGroupIndex" : 0, + "path" : "src/net/sockets/server.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 12, + "compileGroupIndex" : 0, + "path" : "src/net/sockets/thread_manager.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 12, + "path" : "src/net/sockets/thread_manager.h", + "sourceGroupIndex" : 1 + } + ], + "type" : "SHARED_LIBRARY" +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/target-netex_client-Debug-7bb063a5e032437645d0.json b/cmake-build-debug/.cmake/api/v1/reply/target-netex_client-Debug-7bb063a5e032437645d0.json new file mode 100644 index 0000000..4025c56 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/target-netex_client-Debug-7bb063a5e032437645d0.json @@ -0,0 +1,190 @@ +{ + "artifacts" : + [ + { + "path" : "debug/bin/netex_client" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_executable", + "target_link_libraries", + "set_target_properties", + "find_package", + "add_compile_options", + "target_include_directories" + ], + "files" : + [ + "src/client/CMakeLists.txt", + "src/net/CMakeLists.txt", + "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindOpenSSL.cmake", + "CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 2, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 6, + "parent" : 0 + }, + { + "file" : 1 + }, + { + "command" : 1, + "file" : 1, + "line" : 6, + "parent" : 3 + }, + { + "command" : 3, + "file" : 1, + "line" : 5, + "parent" : 3 + }, + { + "file" : 2, + "parent" : 5 + }, + { + "command" : 2, + "file" : 2, + "line" : 741, + "parent" : 6 + }, + { + "file" : 3 + }, + { + "command" : 4, + "file" : 3, + "line" : 5, + "parent" : 8 + }, + { + "command" : 5, + "file" : 0, + "line" : 5, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g -fdiagnostics-color=always" + }, + { + "backtrace" : 9, + "fragment" : "-pthread" + } + ], + "includes" : + [ + { + "backtrace" : 10, + "path" : "/home/max/GitHub/netex/src/net/include" + } + ], + "language" : "C", + "sourceIndexes" : + [ + 0, + 1 + ] + } + ], + "dependencies" : + [ + { + "backtrace" : 2, + "id" : "netex::@fa6dfe1ce2083cdf68d6" + } + ], + "id" : "netex_client::@8ca63c80a879d0067daa", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "-g", + "role" : "flags" + }, + { + "fragment" : "", + "role" : "flags" + }, + { + "fragment" : "-Wl,-rpath,/home/max/GitHub/netex/cmake-build-debug/debug/bin", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "debug/bin/libnetex.so", + "role" : "libraries" + }, + { + "backtrace" : 4, + "fragment" : "/usr/lib/libssl.so", + "role" : "libraries" + }, + { + "backtrace" : 7, + "fragment" : "/usr/lib/libcrypto.so", + "role" : "libraries" + } + ], + "language" : "C" + }, + "name" : "netex_client", + "nameOnDisk" : "netex_client", + "paths" : + { + "build" : "src/client", + "source" : "src/client" + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0, + 1 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/client/main.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 2, + "compileGroupIndex" : 0, + "path" : "src/net/threads/thread_manager.c", + "sourceGroupIndex" : 0 + } + ], + "type" : "EXECUTABLE" +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/target-netex_svr-Debug-eceba98322d47e70e99c.json b/cmake-build-debug/.cmake/api/v1/reply/target-netex_svr-Debug-eceba98322d47e70e99c.json new file mode 100644 index 0000000..0fc00b2 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/target-netex_svr-Debug-eceba98322d47e70e99c.json @@ -0,0 +1,190 @@ +{ + "artifacts" : + [ + { + "path" : "debug/bin/netex_svr" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_executable", + "target_link_libraries", + "set_target_properties", + "find_package", + "add_compile_options", + "target_include_directories" + ], + "files" : + [ + "src/server/CMakeLists.txt", + "src/net/CMakeLists.txt", + "/home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindOpenSSL.cmake", + "CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 1, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 5, + "parent" : 0 + }, + { + "file" : 1 + }, + { + "command" : 1, + "file" : 1, + "line" : 6, + "parent" : 3 + }, + { + "command" : 3, + "file" : 1, + "line" : 5, + "parent" : 3 + }, + { + "file" : 2, + "parent" : 5 + }, + { + "command" : 2, + "file" : 2, + "line" : 741, + "parent" : 6 + }, + { + "file" : 3 + }, + { + "command" : 4, + "file" : 3, + "line" : 5, + "parent" : 8 + }, + { + "command" : 5, + "file" : 0, + "line" : 4, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g -fdiagnostics-color=always" + }, + { + "backtrace" : 9, + "fragment" : "-pthread" + } + ], + "includes" : + [ + { + "backtrace" : 10, + "path" : "/home/max/GitHub/netex/src/net/include" + } + ], + "language" : "C", + "sourceIndexes" : + [ + 0, + 1 + ] + } + ], + "dependencies" : + [ + { + "backtrace" : 2, + "id" : "netex::@fa6dfe1ce2083cdf68d6" + } + ], + "id" : "netex_svr::@2804e40980a64c7d7ad1", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "-g", + "role" : "flags" + }, + { + "fragment" : "", + "role" : "flags" + }, + { + "fragment" : "-Wl,-rpath,/home/max/GitHub/netex/cmake-build-debug/debug/bin", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "debug/bin/libnetex.so", + "role" : "libraries" + }, + { + "backtrace" : 4, + "fragment" : "/usr/lib/libssl.so", + "role" : "libraries" + }, + { + "backtrace" : 7, + "fragment" : "/usr/lib/libcrypto.so", + "role" : "libraries" + } + ], + "language" : "C" + }, + "name" : "netex_svr", + "nameOnDisk" : "netex_svr", + "paths" : + { + "build" : "src/server", + "source" : "src/server" + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0, + 1 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/server/server.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 2, + "compileGroupIndex" : 0, + "path" : "src/net/threads/thread_manager.c", + "sourceGroupIndex" : 0 + } + ], + "type" : "EXECUTABLE" +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/toolchains-v1-d6c77e95d91a665f7a41.json b/cmake-build-debug/.cmake/api/v1/reply/toolchains-v1-d6c77e95d91a665f7a41.json new file mode 100644 index 0000000..478fc6e --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/toolchains-v1-d6c77e95d91a665f7a41.json @@ -0,0 +1,50 @@ +{ + "kind" : "toolchains", + "toolchains" : + [ + { + "compiler" : + { + "id" : "GNU", + "implicit" : + { + "includeDirectories" : + [ + "/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include", + "/usr/local/include", + "/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include-fixed", + "/usr/include" + ], + "linkDirectories" : + [ + "/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1", + "/usr/lib", + "/lib" + ], + "linkFrameworkDirectories" : [], + "linkLibraries" : + [ + "gcc", + "gcc_s", + "c", + "gcc", + "gcc_s" + ] + }, + "path" : "/usr/bin/cc", + "version" : "13.2.1" + }, + "language" : "C", + "sourceFileExtensions" : + [ + "c", + "m" + ] + } + ], + "version" : + { + "major" : 1, + "minor" : 0 + } +} diff --git a/cmake-build-debug/.ninja_deps b/cmake-build-debug/.ninja_deps new file mode 100644 index 0000000000000000000000000000000000000000..d93670d69925337abda871296420229216f1fb89 GIT binary patch literal 13940 zcmeI2ca+@J6^8|w(0lJo3w36&aRXBfF4$m$!8Tx;tkGy!vZos{-+hwSvpbSz4Yv6s_Br3NcJ+Jrm3!ZPSJH0VQg+HSjDl75 zRvn;e+OFWaX0B}cxlt31nbugRXnFFZ)tN0gZg^#8E1LFS{)s+kS4vi{WOU{ZaQtz# ze4xoiW`ee+ru_$fi|A{fn{&!$u~x8ho?kFCRo5z5tyx>s{*7jEbDL4?z&7pv6=%Cr zwaT7X%;lYm*#0M)?fUi~X-bCaRy>hu|3J56k}lMnm9iS|-_x`ra@uOH;X9Rb*8W>s z|DoM>M({bhmZbhIz2XhZ+Ml7>ysyS7`+ir|l3DyU?tZIf_%&DE|1@qa(fy3?l&qnH zWikE|HZe#Kw`B^ITE0kE z+8^TVw3TbbQ7w<1PvXYXb3dad^)Z^gqO~hJ`COZ6<~oND)rStwRLxA$Dc3qP(q`c9 z*+JQX^`XiNXYJp|je$5;H?jK>_tn0rkMm$IPTtJe7Te9uc)sCc4E^uo#;o*_H#P0I zXc}U7p$0z$vHM}NtsbBLCQ;L2+J>vf^y|d_f{A9BEFrD^s+q192!Dxg<7myJ-7BWp znZMxP7xah98bANy?G3jrYyXV)4f}oJ+U9h}B`5}6hdmG|5n44Lt%ycZ> zspze>vMD(&Sd{k@$DrhQ`)ccD@^DM~$n)aQxPy(H88jcT;uZ^_mjC6WbrTF5J#< zb3cBL;W`&9=FBjDzSAGAQ&8%+62}+Vm251+Z#S_iIydb9O|%VbXO#<%5%}O++>iI^ zLeV!9#}#PGmZ#S38;Q2^UB2aY7}c!(2AcS_Q;8KTnd4bS%M5bw zYjGOo`-P%c6Z;I-)pOcB%MTXpl_pwUU#NZ=Z9n#>xTD=DX6={I?-sj%!f^!qSsl7n z%T%%bB5mSxO4YYrP9oJbYrl{@7A4DgoD5bW6Uw#c6ZQ3WGlpy0Y8=lc>J7hAa!kDg z&*^5RR`xA9fu2PlKkhJVm1s@H#&**U9 z>BNOeYHEI2cChYL)G+UiRcH0A6SEbov zj;-nh(X=a@>r}5-r1fdFt98B{&5o=`uXh*GI+(V2h)L|E=YgCsPrS(_I&!8q!9bVW(r}M5v{C+`NpN3Z+i0J$@TcQaU<2-bU z>l=ai5`y=5$7y ztwLby^i)kyXU$31sP0Zn8xws+W15|2i+WIE;M6o*vR^}E-OY4*d#mL0Q_}h@+J?t8 zPfpWRXPVxytbI~ie@YV!?8G!%w(ra4KOs#Mz6hL^)}Ls?b?9oQ3+tcGv_7krdZ6w| zvxO$|V|$t{JJ`&%G>zePmD%xrT7OCt^ysD83ZJ{&bd54}d|H2;J<k}lRx35p?2e|GrtyoO`b zAqP@Z4unClJ4l^31ct&e7!G^Do-hLTg1uoM*cV2^ey~4`g3&Mr#=-$G4#vZQa1cy@ ziEuC+0+ZlSI1DDk6qpK!!x3;KOoOA~XgCIrh2ubn>0m$}OelZ_tU~AY0wuSAWZ|ttX?}kJ4p)dA(p~u@7i_b;!ziwMas$ZG0&e)}G%6#P$ zWNho>Xe(>nq;1bvhF}C)`&inIly>rddr{sA_=S9>q8@d$W3bT@+34v(-YKeHR317S z&8~el!8;)NI>)Cf_1@j7v)6j?ydOd&CX>_R@=>5o4TSlS4v-lBl z8p+Rfb2uE0(MIdGdVR7}#l!>^3KOmOK!R6b+Ap-A9q^^v z+uB&#SMm9yjA6s4-cmk)jO(R&);vysQJo?FmGy}HdMww+fz%yiKx!O`1*vl+9wZjV zK~(ST&GkO8FN}o!V1Jkndx8N|U@AyF$HiI{TSK@%6o!GEX?ws3SR64E)e^EjQ_okk z={M zB}U45uphdXzWu2@BM;2HyXHU}nP{uc^65}lU1#lmo9W~o9kbXcQ5Q^9w>s4%_C~h| z`%S(|W55jm(udfj{ap6T6U=YL$<92*ZXU6$3p$t5qDO|IU(o6bg0k$5;y&LPKllbNYhql@CJ!< zfEefwpU?D;_8SJjyY!#WUSa%_$5QK#pjv3G8i@bl%%LB7Fv)^8tbgr$tzT$NojF5k z|0!$uDsz~$=34V*4PWDWY3(D4$=Bhls5_#1E1LJRdMl{qmt?&)0blp$-HooRKaoy~ zd-?NdZAciqZ*V>OHUIxAcBALR5wqV{^PbNd$exXI{N`M5088@y)B^0+pCe1M4q6=b zN>ndw|JltqN}gL*F9h#;lj_ANmiqd6arolP)C*DF-}26T%8$$H{&YXq@6pBKyZX3z zksQz+)?hooxzp6~Ur`MNb zgXGit_xPLev%I6&3?$!f0b4?U-|z2)w%K#!;&`_DDm z;SiVvhr(en8K%HgI2?|EBVigG1ySu*U-wVv_fqHQ!Gr=>& + +#endif //NETEXTHREADS_H diff --git a/src/include/sockets.h b/src/net/include/sockets.h similarity index 100% rename from src/include/sockets.h rename to src/net/include/sockets.h diff --git a/src/net/netex.c b/src/net/netex.c new file mode 100644 index 0000000..a49a9d7 --- /dev/null +++ b/src/net/netex.c @@ -0,0 +1,20 @@ +#include "netex.h" +#include "netexssl.h" +#include +#include +#include + +void init_openssl(void) +{ + PRINT_LINE("Initializing OpenSSL..."); + SSL_load_error_strings(); + SSL_library_init(); + OpenSSL_add_all_algorithms(); + PRINT_LINE("OpenSSL initialized!"); +} +void shutdown_openssl(void) +{ + PRINT_LINE("Shuttingdown OpenSSL..."); + ERR_free_strings(); + EVP_cleanup(); +} \ No newline at end of file diff --git a/src/sockets/CMakeLists.txt b/src/net/sockets/CMakeLists.txt similarity index 80% rename from src/sockets/CMakeLists.txt rename to src/net/sockets/CMakeLists.txt index 84ca8e7..e89343c 100644 --- a/src/sockets/CMakeLists.txt +++ b/src/net/sockets/CMakeLists.txt @@ -1,5 +1,5 @@ -target_sources(cexp PRIVATE +target_sources(netex PRIVATE "client.c" "communication.h" "sock_helper.c" diff --git a/src/sockets/client.c b/src/net/sockets/client.c similarity index 96% rename from src/sockets/client.c rename to src/net/sockets/client.c index 49babee..a334514 100644 --- a/src/sockets/client.c +++ b/src/net/sockets/client.c @@ -5,7 +5,7 @@ #include #include #include -#include "cexp.h" +#include "netex.h" #include "sockets.h" #include "communication.h" @@ -25,7 +25,7 @@ int clientstart() int connection_status = connect(client_sockfd, (struct sockaddr*) &client_sockaddr, sizeof(client_sockaddr)); if (connection_status != 0) { - TRACE_ERROR("Could not connect!"); + ERROR("Could not connect!"); return -1; } /* diff --git a/src/sockets/communication.h b/src/net/sockets/communication.h similarity index 100% rename from src/sockets/communication.h rename to src/net/sockets/communication.h diff --git a/src/sockets/server.c b/src/net/sockets/server.c similarity index 84% rename from src/sockets/server.c rename to src/net/sockets/server.c index 94d559b..ea5db81 100644 --- a/src/sockets/server.c +++ b/src/net/sockets/server.c @@ -3,7 +3,7 @@ #include #include #include -#include "cexp.h" +#include "netex.h" #include "sockets.h" #include "thread_manager.h" #include "communication.h" @@ -36,13 +36,12 @@ int start_server() { if (fgets(inputBuffer, 90, stdin) != inputBuffer) { - TRACE_WARN("Could not get input from stdin!"); + WARN("Could not get input from stdin!"); continue; } - TRACE_WARN("Not a valid option given!"); + WARN("Not a valid option given!"); //TODO: Implement! } - return 0; } @@ -51,7 +50,7 @@ int setup_server() server_sockfd = socket(AF_INET, SOCK_STREAM, 0); if (server_sockfd < 0) { - TRACE_ERROR("Could not create server socket!"); + ERROR("Could not create server socket!"); return -1; } @@ -62,7 +61,7 @@ int setup_server() int bind_result = bind(server_sockfd, (struct sockaddr *) &server_sockaddr, sizeof(server_sockaddr)); if (bind_result != 0) { - TRACE_ERROR("Cannot bind to socket!"); + ERROR("Cannot bind to socket!"); return -1; } return 0; @@ -75,17 +74,17 @@ void* thread_listen_network() int listen_result = listen(server_sockfd, 1); if (listen_result == -1) { - TRACE_WARN("Could not listen. code: %i", errno); + WARN("Could not listen. code: %i", errno); continue; } int clientfd = accept(server_sockfd, NULL, NULL); if (clientfd == -1) { - TRACE_WARN("Could not accept client!"); + WARN("Could not accept client!"); continue; } if (init_thread(&clientfd, thread_client_handler) == -1) - TRACE_WARN("Could not establish connection with client!"); + WARN("Could not establish connection with client!"); } } @@ -106,7 +105,7 @@ void* thread_client_handler(void* arg) rec_result = recv(client_fd, buff, 45, 0); if (rec_result == -1) { - TRACE_WARN("Could not recieve data from client!"); + WARN("Could not recieve data from client!"); continue; } @@ -130,7 +129,7 @@ void send_initial_pack(int client) srvInitBuffer = malloc(totalBufferSize); if (srvInitBuffer == NULL) { - TRACE_ERROR("Could not allocate memory!"); + ERROR("Could not allocate memory!"); return; } *(char*)srvInitBuffer = htonl(srtLen); // Name string lengt @@ -138,7 +137,7 @@ void send_initial_pack(int client) void* dataBuffer = ((char*)srvInitBuffer + sizeof(uint32_t) + sizeof(EMessageType)); // Push offset for string copy if (strcpy(dataBuffer, srvName) != dataBuffer) { - TRACE_ERROR("Could not copy data to buffer!"); + ERROR("Could not copy data to buffer!"); free(srvInitBuffer); srvInitBuffer = NULL; return; @@ -154,7 +153,7 @@ void send_initial_pack(int client) size_t sended = send(client, srvInitBuffer, totalBufferSize - totalDataSend, 0); if (sended == -1) { - TRACE_ERROR("Could not send data."); + ERROR("Could not send data."); break; } totalDataSend += sended; diff --git a/src/sockets/sock_helper.c b/src/net/sockets/sock_helper.c similarity index 87% rename from src/sockets/sock_helper.c rename to src/net/sockets/sock_helper.c index 4cd653f..7b7d923 100644 --- a/src/sockets/sock_helper.c +++ b/src/net/sockets/sock_helper.c @@ -1,4 +1,4 @@ -#include "cexp.h" +#include "netex.h" #include "sockets.h" int writeToSock(int fd, void* data, ssize_t size) @@ -10,7 +10,7 @@ int writeToSock(int fd, void* data, ssize_t size) dataSizeSend += send(fd, (char*)data + dataSizeSend, size - dataSizeSend, 0); if (dataSizeSend == -1) { - TRACE_WARN("Cannot send data!"); + WARN("Cannot send data!"); return -1; } } @@ -27,7 +27,7 @@ int readFromSock(int fd, void* buff, ssize_t size) dataRecv += recv(fd, (char*)buff + dataRecv, size - dataRecv, 0); if (dataRecv == -1) { - TRACE_WARN("Cannot receive data!"); + WARN("Cannot receive data!"); return -1; } } diff --git a/src/sockets/thread_manager.c b/src/net/sockets/thread_manager.c similarity index 84% rename from src/sockets/thread_manager.c rename to src/net/sockets/thread_manager.c index 9c571a4..8451733 100644 --- a/src/sockets/thread_manager.c +++ b/src/net/sockets/thread_manager.c @@ -1,5 +1,5 @@ #include -#include "cexp.h" +#include "netex.h" #include "thread_manager.h" pthread_t server_listen_thread; @@ -10,7 +10,7 @@ int init_thread(int* clientfd, void *(*func) (void *)) int thread_create_result = pthread_create(&thread, NULL, func, clientfd); if (thread_create_result == -1) { - TRACE_ERROR("Could not create thread!"); + ERROR("Could not create thread!"); return thread_create_result; } PRINT_LINE("Client: %d accepted on thread: %lu", *clientfd, thread); @@ -22,7 +22,7 @@ int setup_server_thread(void *(*func) (void*)) int thread_create_result = pthread_create(&server_listen_thread, NULL, func, NULL); if (thread_create_result != 0) { - TRACE_ERROR("Cannot create server thread!"); + ERROR("Cannot create server thread!"); return thread_create_result; } return 0; diff --git a/src/sockets/thread_manager.h b/src/net/sockets/thread_manager.h similarity index 100% rename from src/sockets/thread_manager.h rename to src/net/sockets/thread_manager.h diff --git a/src/net/threads/CMakeLists.txt b/src/net/threads/CMakeLists.txt new file mode 100644 index 0000000..7c9507f --- /dev/null +++ b/src/net/threads/CMakeLists.txt @@ -0,0 +1,4 @@ +# libnet threads + +target_sources(netex PUBLIC + "thread_manager.c") \ No newline at end of file diff --git a/src/net/threads/thread_manager.c b/src/net/threads/thread_manager.c new file mode 100644 index 0000000..7487ff0 --- /dev/null +++ b/src/net/threads/thread_manager.c @@ -0,0 +1,18 @@ +// +// Created by max on 24-12-23. +// + + +#include +#include "netex.h" +#include "netexthreads.h" + +pthread_t create_thread(void *(*func) (void*)) +{ + pthread_t thread; + if (pthread_create(&thread, NULL, func, NULL) != 0) + { + ERROR("[threadmanager] Failed to create thread!"); + } + return thread; +} \ No newline at end of file diff --git a/src/server/CMakeLists.txt b/src/server/CMakeLists.txt index edfd58b..13e475d 100644 --- a/src/server/CMakeLists.txt +++ b/src/server/CMakeLists.txt @@ -1,2 +1,5 @@ -target_sources(netex PUBLIC - "server.c") \ No newline at end of file +add_executable(netex_svr + "server.c") + +target_include_directories(netex_svr PRIVATE ${CMAKE_SOURCE_DIR}/src/net/include) +target_link_libraries(netex_svr netex) \ No newline at end of file diff --git a/src/server/server.c b/src/server/server.c index e69de29..458cdd7 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -0,0 +1,20 @@ + +#include +#include "netex.h" +#include "netexssl.h" + +int main(int argc, char *argv[]) +{ + init_openssl(); + PRINT_LINE("Hello, server!"); + shutdown_openssl(); + return 0; +} + +void* th_srv_listen(void) +{ + for (;;) + { + //TODO: Listen to connections & give a thread to handle communication + } +} \ No newline at end of file