mirror of
https://github.com/hmaxnl/netex.git
synced 2025-01-18 15:34:20 +01:00
reworking proj with OpenSSL
This commit is contained in:
parent
76aa27a126
commit
d55cf5ee81
|
@ -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)
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJ_DEB_BUILD_DIR}/bin)
|
||||||
|
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
0
cmake-build-debug/.cmake/api/v1/query/cache-v2
Normal file
0
cmake-build-debug/.cmake/api/v1/query/cache-v2
Normal file
0
cmake-build-debug/.cmake/api/v1/query/cmakeFiles-v1
Normal file
0
cmake-build-debug/.cmake/api/v1/query/cmakeFiles-v1
Normal file
0
cmake-build-debug/.cmake/api/v1/query/codemodel-v2
Normal file
0
cmake-build-debug/.cmake/api/v1/query/codemodel-v2
Normal file
0
cmake-build-debug/.cmake/api/v1/query/toolchains-v1
Normal file
0
cmake-build-debug/.cmake/api/v1/query/toolchains-v1
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"backtraceGraph" :
|
||||||
|
{
|
||||||
|
"commands" : [],
|
||||||
|
"files" : [],
|
||||||
|
"nodes" : []
|
||||||
|
},
|
||||||
|
"installers" : [],
|
||||||
|
"paths" :
|
||||||
|
{
|
||||||
|
"build" : ".",
|
||||||
|
"source" : "."
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"backtraceGraph" :
|
||||||
|
{
|
||||||
|
"commands" : [],
|
||||||
|
"files" : [],
|
||||||
|
"nodes" : []
|
||||||
|
},
|
||||||
|
"installers" : [],
|
||||||
|
"paths" :
|
||||||
|
{
|
||||||
|
"build" : "src",
|
||||||
|
"source" : "src"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"backtraceGraph" :
|
||||||
|
{
|
||||||
|
"commands" : [],
|
||||||
|
"files" : [],
|
||||||
|
"nodes" : []
|
||||||
|
},
|
||||||
|
"installers" : [],
|
||||||
|
"paths" :
|
||||||
|
{
|
||||||
|
"build" : "src/client",
|
||||||
|
"source" : "src/client"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"backtraceGraph" :
|
||||||
|
{
|
||||||
|
"commands" : [],
|
||||||
|
"files" : [],
|
||||||
|
"nodes" : []
|
||||||
|
},
|
||||||
|
"installers" : [],
|
||||||
|
"paths" :
|
||||||
|
{
|
||||||
|
"build" : "src/net",
|
||||||
|
"source" : "src/net"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"backtraceGraph" :
|
||||||
|
{
|
||||||
|
"commands" : [],
|
||||||
|
"files" : [],
|
||||||
|
"nodes" : []
|
||||||
|
},
|
||||||
|
"installers" : [],
|
||||||
|
"paths" :
|
||||||
|
{
|
||||||
|
"build" : "src/net/sockets",
|
||||||
|
"source" : "src/net/sockets"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"backtraceGraph" :
|
||||||
|
{
|
||||||
|
"commands" : [],
|
||||||
|
"files" : [],
|
||||||
|
"nodes" : []
|
||||||
|
},
|
||||||
|
"installers" : [],
|
||||||
|
"paths" :
|
||||||
|
{
|
||||||
|
"build" : "src/net/threads",
|
||||||
|
"source" : "src/net/threads"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"backtraceGraph" :
|
||||||
|
{
|
||||||
|
"commands" : [],
|
||||||
|
"files" : [],
|
||||||
|
"nodes" : []
|
||||||
|
},
|
||||||
|
"installers" : [],
|
||||||
|
"paths" :
|
||||||
|
{
|
||||||
|
"build" : "src/server",
|
||||||
|
"source" : "src/server"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
|
@ -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"
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
BIN
cmake-build-debug/.ninja_deps
Normal file
BIN
cmake-build-debug/.ninja_deps
Normal file
Binary file not shown.
21
cmake-build-debug/.ninja_log
Normal file
21
cmake-build-debug/.ninja_log
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# ninja log v5
|
||||||
|
146 220 1703436221823758554 debug/bin/libnetex.so 4c8e8b8e9c244ed1
|
||||||
|
1 48 1703436134472793110 src/net/CMakeFiles/netex.dir/sockets/thread_manager.c.o 5c5a0caff432164e
|
||||||
|
0 146 1703436221750424409 src/net/CMakeFiles/netex.dir/netex.c.o da89b76b970f6a5c
|
||||||
|
1 43 1703436134469459740 src/net/CMakeFiles/netex.dir/sockets/sock_helper.c.o 740522a0ea7e1ae3
|
||||||
|
1 70 1703436134496126701 src/net/CMakeFiles/netex.dir/sockets/server.c.o 52d37ab8fa80e77b
|
||||||
|
221 292 1703436221897092698 debug/bin/netex_svr 7e06ea11fb459236
|
||||||
|
0 56 1703436134482793221 src/net/CMakeFiles/netex.dir/sockets/client.c.o 2122a8ee422198a
|
||||||
|
1 33 1703436221640423193 src/server/CMakeFiles/netex_svr.dir/server.c.o 17f3a11b15c63cc5
|
||||||
|
2 37 1703438406571685727 src/server/CMakeFiles/netex_svr.dir/server.c.o 17f3a11b15c63cc5
|
||||||
|
1 49 1703438406581685840 src/net/CMakeFiles/netex.dir/threads/thread_manager.c.o 6a74a73287a2da04
|
||||||
|
2 50 1703438406581685840 src/net/CMakeFiles/netex.dir/sockets/thread_manager.c.o 5c5a0caff432164e
|
||||||
|
3 54 1703438406588352580 src/server/CMakeFiles/netex_svr.dir/__/net/threads/thread_manager.c.o 5ea6199c93850319
|
||||||
|
2 61 1703438406595019323 src/net/CMakeFiles/netex.dir/sockets/sock_helper.c.o 740522a0ea7e1ae3
|
||||||
|
2 75 1703438406608352805 src/net/CMakeFiles/netex.dir/sockets/server.c.o 52d37ab8fa80e77b
|
||||||
|
1 77 1703438406611686176 src/net/CMakeFiles/netex.dir/sockets/client.c.o 2122a8ee422198a
|
||||||
|
1 32 1703438495502683690 src/server/CMakeFiles/netex_svr.dir/server.c.o 17f3a11b15c63cc5
|
||||||
|
1 146 1703438495616018294 src/net/CMakeFiles/netex.dir/netex.c.o da89b76b970f6a5c
|
||||||
|
146 223 1703438495692685822 debug/bin/libnetex.so c29a978d9713284e
|
||||||
|
1 37 1703438546219919364 src/server/CMakeFiles/netex_svr.dir/server.c.o 17f3a11b15c63cc5
|
||||||
|
37 113 1703438546293253521 debug/bin/netex_svr b6b4e24be024abe9
|
3
cmake-build-debug/Testing/Temporary/LastTest.log
Normal file
3
cmake-build-debug/Testing/Temporary/LastTest.log
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Start testing: Dec 24 18:22 CET
|
||||||
|
----------------------------------------------------------
|
||||||
|
End testing: Dec 24 18:22 CET
|
485
cmake-build-debug/build.ninja
Normal file
485
cmake-build-debug/build.ninja
Normal file
|
@ -0,0 +1,485 @@
|
||||||
|
# CMAKE generated file: DO NOT EDIT!
|
||||||
|
# Generated by "Ninja" Generator, CMake Version 3.27
|
||||||
|
|
||||||
|
# This file contains all the build statements describing the
|
||||||
|
# compilation DAG.
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Write statements declared in CMakeLists.txt:
|
||||||
|
#
|
||||||
|
# Which is the root file.
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Project: netex
|
||||||
|
# Configurations: Debug
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Minimal version of Ninja required by this file
|
||||||
|
|
||||||
|
ninja_required_version = 1.5
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Set configuration variable for custom commands.
|
||||||
|
|
||||||
|
CONFIGURATION = Debug
|
||||||
|
# =============================================================================
|
||||||
|
# Include auxiliary files.
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Include rules file.
|
||||||
|
|
||||||
|
include CMakeFiles/rules.ninja
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Logical path to working directory; prefix for absolute paths.
|
||||||
|
|
||||||
|
cmake_ninja_workdir = /home/max/GitHub/netex/cmake-build-debug/
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for edit_cache
|
||||||
|
|
||||||
|
build CMakeFiles/edit_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||||
|
DESC = No interactive CMake dialog available...
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build edit_cache: phony CMakeFiles/edit_cache.util
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for rebuild_cache
|
||||||
|
|
||||||
|
build CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake --regenerate-during-build -S/home/max/GitHub/netex -B/home/max/GitHub/netex/cmake-build-debug
|
||||||
|
DESC = Running CMake to regenerate build system...
|
||||||
|
pool = console
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build rebuild_cache: phony CMakeFiles/rebuild_cache.util
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Write statements declared in CMakeLists.txt:
|
||||||
|
# /home/max/GitHub/netex/CMakeLists.txt
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for edit_cache
|
||||||
|
|
||||||
|
build src/CMakeFiles/edit_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug/src && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||||
|
DESC = No interactive CMake dialog available...
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build src/edit_cache: phony src/CMakeFiles/edit_cache.util
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for rebuild_cache
|
||||||
|
|
||||||
|
build src/CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug/src && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake --regenerate-during-build -S/home/max/GitHub/netex -B/home/max/GitHub/netex/cmake-build-debug
|
||||||
|
DESC = Running CMake to regenerate build system...
|
||||||
|
pool = console
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build src/rebuild_cache: phony src/CMakeFiles/rebuild_cache.util
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Write statements declared in CMakeLists.txt:
|
||||||
|
# /home/max/GitHub/netex/src/CMakeLists.txt
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Object build statements for SHARED_LIBRARY target netex
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Order-only phony target for netex
|
||||||
|
|
||||||
|
build cmake_object_order_depends_target_netex: phony || src/net/CMakeFiles/netex.dir
|
||||||
|
|
||||||
|
build src/net/CMakeFiles/netex.dir/netex.c.o: C_COMPILER__netex_unscanned_Debug /home/max/GitHub/netex/src/net/netex.c || cmake_object_order_depends_target_netex
|
||||||
|
DEFINES = -Dnetex_EXPORTS
|
||||||
|
DEP_FILE = src/net/CMakeFiles/netex.dir/netex.c.o.d
|
||||||
|
FLAGS = -g -fPIC -fdiagnostics-color=always -pthread
|
||||||
|
INCLUDES = -I/home/max/GitHub/netex/src/net/include
|
||||||
|
OBJECT_DIR = src/net/CMakeFiles/netex.dir
|
||||||
|
OBJECT_FILE_DIR = src/net/CMakeFiles/netex.dir
|
||||||
|
|
||||||
|
build src/net/CMakeFiles/netex.dir/threads/thread_manager.c.o: C_COMPILER__netex_unscanned_Debug /home/max/GitHub/netex/src/net/threads/thread_manager.c || cmake_object_order_depends_target_netex
|
||||||
|
DEFINES = -Dnetex_EXPORTS
|
||||||
|
DEP_FILE = src/net/CMakeFiles/netex.dir/threads/thread_manager.c.o.d
|
||||||
|
FLAGS = -g -fPIC -fdiagnostics-color=always -pthread
|
||||||
|
INCLUDES = -I/home/max/GitHub/netex/src/net/include
|
||||||
|
OBJECT_DIR = src/net/CMakeFiles/netex.dir
|
||||||
|
OBJECT_FILE_DIR = src/net/CMakeFiles/netex.dir/threads
|
||||||
|
|
||||||
|
build src/net/CMakeFiles/netex.dir/sockets/client.c.o: C_COMPILER__netex_unscanned_Debug /home/max/GitHub/netex/src/net/sockets/client.c || cmake_object_order_depends_target_netex
|
||||||
|
DEFINES = -Dnetex_EXPORTS
|
||||||
|
DEP_FILE = src/net/CMakeFiles/netex.dir/sockets/client.c.o.d
|
||||||
|
FLAGS = -g -fPIC -fdiagnostics-color=always -pthread
|
||||||
|
INCLUDES = -I/home/max/GitHub/netex/src/net/include
|
||||||
|
OBJECT_DIR = src/net/CMakeFiles/netex.dir
|
||||||
|
OBJECT_FILE_DIR = src/net/CMakeFiles/netex.dir/sockets
|
||||||
|
|
||||||
|
build src/net/CMakeFiles/netex.dir/sockets/sock_helper.c.o: C_COMPILER__netex_unscanned_Debug /home/max/GitHub/netex/src/net/sockets/sock_helper.c || cmake_object_order_depends_target_netex
|
||||||
|
DEFINES = -Dnetex_EXPORTS
|
||||||
|
DEP_FILE = src/net/CMakeFiles/netex.dir/sockets/sock_helper.c.o.d
|
||||||
|
FLAGS = -g -fPIC -fdiagnostics-color=always -pthread
|
||||||
|
INCLUDES = -I/home/max/GitHub/netex/src/net/include
|
||||||
|
OBJECT_DIR = src/net/CMakeFiles/netex.dir
|
||||||
|
OBJECT_FILE_DIR = src/net/CMakeFiles/netex.dir/sockets
|
||||||
|
|
||||||
|
build src/net/CMakeFiles/netex.dir/sockets/server.c.o: C_COMPILER__netex_unscanned_Debug /home/max/GitHub/netex/src/net/sockets/server.c || cmake_object_order_depends_target_netex
|
||||||
|
DEFINES = -Dnetex_EXPORTS
|
||||||
|
DEP_FILE = src/net/CMakeFiles/netex.dir/sockets/server.c.o.d
|
||||||
|
FLAGS = -g -fPIC -fdiagnostics-color=always -pthread
|
||||||
|
INCLUDES = -I/home/max/GitHub/netex/src/net/include
|
||||||
|
OBJECT_DIR = src/net/CMakeFiles/netex.dir
|
||||||
|
OBJECT_FILE_DIR = src/net/CMakeFiles/netex.dir/sockets
|
||||||
|
|
||||||
|
build src/net/CMakeFiles/netex.dir/sockets/thread_manager.c.o: C_COMPILER__netex_unscanned_Debug /home/max/GitHub/netex/src/net/sockets/thread_manager.c || cmake_object_order_depends_target_netex
|
||||||
|
DEFINES = -Dnetex_EXPORTS
|
||||||
|
DEP_FILE = src/net/CMakeFiles/netex.dir/sockets/thread_manager.c.o.d
|
||||||
|
FLAGS = -g -fPIC -fdiagnostics-color=always -pthread
|
||||||
|
INCLUDES = -I/home/max/GitHub/netex/src/net/include
|
||||||
|
OBJECT_DIR = src/net/CMakeFiles/netex.dir
|
||||||
|
OBJECT_FILE_DIR = src/net/CMakeFiles/netex.dir/sockets
|
||||||
|
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Link build statements for SHARED_LIBRARY target netex
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Link the shared library debug/bin/libnetex.so
|
||||||
|
|
||||||
|
build debug/bin/libnetex.so: C_SHARED_LIBRARY_LINKER__netex_Debug src/net/CMakeFiles/netex.dir/netex.c.o src/net/CMakeFiles/netex.dir/threads/thread_manager.c.o src/net/CMakeFiles/netex.dir/sockets/client.c.o src/net/CMakeFiles/netex.dir/sockets/sock_helper.c.o src/net/CMakeFiles/netex.dir/sockets/server.c.o src/net/CMakeFiles/netex.dir/sockets/thread_manager.c.o | /usr/lib/libssl.so /usr/lib/libcrypto.so
|
||||||
|
LANGUAGE_COMPILE_FLAGS = -g
|
||||||
|
LINK_LIBRARIES = /usr/lib/libssl.so /usr/lib/libcrypto.so
|
||||||
|
OBJECT_DIR = src/net/CMakeFiles/netex.dir
|
||||||
|
POST_BUILD = :
|
||||||
|
PRE_LINK = :
|
||||||
|
SONAME = libnetex.so
|
||||||
|
SONAME_FLAG = -Wl,-soname,
|
||||||
|
TARGET_FILE = debug/bin/libnetex.so
|
||||||
|
TARGET_PDB = netex.so.dbg
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for edit_cache
|
||||||
|
|
||||||
|
build src/net/CMakeFiles/edit_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug/src/net && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||||
|
DESC = No interactive CMake dialog available...
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build src/net/edit_cache: phony src/net/CMakeFiles/edit_cache.util
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for rebuild_cache
|
||||||
|
|
||||||
|
build src/net/CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug/src/net && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake --regenerate-during-build -S/home/max/GitHub/netex -B/home/max/GitHub/netex/cmake-build-debug
|
||||||
|
DESC = Running CMake to regenerate build system...
|
||||||
|
pool = console
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build src/net/rebuild_cache: phony src/net/CMakeFiles/rebuild_cache.util
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Write statements declared in CMakeLists.txt:
|
||||||
|
# /home/max/GitHub/netex/src/net/CMakeLists.txt
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for edit_cache
|
||||||
|
|
||||||
|
build src/net/threads/CMakeFiles/edit_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug/src/net/threads && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||||
|
DESC = No interactive CMake dialog available...
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build src/net/threads/edit_cache: phony src/net/threads/CMakeFiles/edit_cache.util
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for rebuild_cache
|
||||||
|
|
||||||
|
build src/net/threads/CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug/src/net/threads && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake --regenerate-during-build -S/home/max/GitHub/netex -B/home/max/GitHub/netex/cmake-build-debug
|
||||||
|
DESC = Running CMake to regenerate build system...
|
||||||
|
pool = console
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build src/net/threads/rebuild_cache: phony src/net/threads/CMakeFiles/rebuild_cache.util
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Write statements declared in CMakeLists.txt:
|
||||||
|
# /home/max/GitHub/netex/src/net/CMakeLists.txt
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for edit_cache
|
||||||
|
|
||||||
|
build src/net/sockets/CMakeFiles/edit_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug/src/net/sockets && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||||
|
DESC = No interactive CMake dialog available...
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build src/net/sockets/edit_cache: phony src/net/sockets/CMakeFiles/edit_cache.util
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for rebuild_cache
|
||||||
|
|
||||||
|
build src/net/sockets/CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug/src/net/sockets && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake --regenerate-during-build -S/home/max/GitHub/netex -B/home/max/GitHub/netex/cmake-build-debug
|
||||||
|
DESC = Running CMake to regenerate build system...
|
||||||
|
pool = console
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build src/net/sockets/rebuild_cache: phony src/net/sockets/CMakeFiles/rebuild_cache.util
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Write statements declared in CMakeLists.txt:
|
||||||
|
# /home/max/GitHub/netex/src/CMakeLists.txt
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Object build statements for EXECUTABLE target netex_svr
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Order-only phony target for netex_svr
|
||||||
|
|
||||||
|
build cmake_object_order_depends_target_netex_svr: phony || cmake_object_order_depends_target_netex
|
||||||
|
|
||||||
|
build src/server/CMakeFiles/netex_svr.dir/server.c.o: C_COMPILER__netex_svr_unscanned_Debug /home/max/GitHub/netex/src/server/server.c || cmake_object_order_depends_target_netex_svr
|
||||||
|
DEP_FILE = src/server/CMakeFiles/netex_svr.dir/server.c.o.d
|
||||||
|
FLAGS = -g -fdiagnostics-color=always -pthread
|
||||||
|
INCLUDES = -I/home/max/GitHub/netex/src/net/include
|
||||||
|
OBJECT_DIR = src/server/CMakeFiles/netex_svr.dir
|
||||||
|
OBJECT_FILE_DIR = src/server/CMakeFiles/netex_svr.dir
|
||||||
|
|
||||||
|
build src/server/CMakeFiles/netex_svr.dir/__/net/threads/thread_manager.c.o: C_COMPILER__netex_svr_unscanned_Debug /home/max/GitHub/netex/src/net/threads/thread_manager.c || cmake_object_order_depends_target_netex_svr
|
||||||
|
DEP_FILE = src/server/CMakeFiles/netex_svr.dir/__/net/threads/thread_manager.c.o.d
|
||||||
|
FLAGS = -g -fdiagnostics-color=always -pthread
|
||||||
|
INCLUDES = -I/home/max/GitHub/netex/src/net/include
|
||||||
|
OBJECT_DIR = src/server/CMakeFiles/netex_svr.dir
|
||||||
|
OBJECT_FILE_DIR = src/server/CMakeFiles/netex_svr.dir/__/net/threads
|
||||||
|
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Link build statements for EXECUTABLE target netex_svr
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Link the executable debug/bin/netex_svr
|
||||||
|
|
||||||
|
build debug/bin/netex_svr: C_EXECUTABLE_LINKER__netex_svr_Debug src/server/CMakeFiles/netex_svr.dir/server.c.o src/server/CMakeFiles/netex_svr.dir/__/net/threads/thread_manager.c.o | debug/bin/libnetex.so /usr/lib/libssl.so /usr/lib/libcrypto.so || debug/bin/libnetex.so
|
||||||
|
FLAGS = -g
|
||||||
|
LINK_LIBRARIES = -Wl,-rpath,/home/max/GitHub/netex/cmake-build-debug/debug/bin debug/bin/libnetex.so /usr/lib/libssl.so /usr/lib/libcrypto.so
|
||||||
|
OBJECT_DIR = src/server/CMakeFiles/netex_svr.dir
|
||||||
|
POST_BUILD = :
|
||||||
|
PRE_LINK = :
|
||||||
|
TARGET_FILE = debug/bin/netex_svr
|
||||||
|
TARGET_PDB = netex_svr.dbg
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for edit_cache
|
||||||
|
|
||||||
|
build src/server/CMakeFiles/edit_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug/src/server && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||||
|
DESC = No interactive CMake dialog available...
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build src/server/edit_cache: phony src/server/CMakeFiles/edit_cache.util
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for rebuild_cache
|
||||||
|
|
||||||
|
build src/server/CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug/src/server && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake --regenerate-during-build -S/home/max/GitHub/netex -B/home/max/GitHub/netex/cmake-build-debug
|
||||||
|
DESC = Running CMake to regenerate build system...
|
||||||
|
pool = console
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build src/server/rebuild_cache: phony src/server/CMakeFiles/rebuild_cache.util
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Write statements declared in CMakeLists.txt:
|
||||||
|
# /home/max/GitHub/netex/src/CMakeLists.txt
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Object build statements for EXECUTABLE target netex_client
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Order-only phony target for netex_client
|
||||||
|
|
||||||
|
build cmake_object_order_depends_target_netex_client: phony || cmake_object_order_depends_target_netex
|
||||||
|
|
||||||
|
build src/client/CMakeFiles/netex_client.dir/main.c.o: C_COMPILER__netex_client_unscanned_Debug /home/max/GitHub/netex/src/client/main.c || cmake_object_order_depends_target_netex_client
|
||||||
|
DEP_FILE = src/client/CMakeFiles/netex_client.dir/main.c.o.d
|
||||||
|
FLAGS = -g -fdiagnostics-color=always -pthread
|
||||||
|
INCLUDES = -I/home/max/GitHub/netex/src/net/include
|
||||||
|
OBJECT_DIR = src/client/CMakeFiles/netex_client.dir
|
||||||
|
OBJECT_FILE_DIR = src/client/CMakeFiles/netex_client.dir
|
||||||
|
|
||||||
|
build src/client/CMakeFiles/netex_client.dir/__/net/threads/thread_manager.c.o: C_COMPILER__netex_client_unscanned_Debug /home/max/GitHub/netex/src/net/threads/thread_manager.c || cmake_object_order_depends_target_netex_client
|
||||||
|
DEP_FILE = src/client/CMakeFiles/netex_client.dir/__/net/threads/thread_manager.c.o.d
|
||||||
|
FLAGS = -g -fdiagnostics-color=always -pthread
|
||||||
|
INCLUDES = -I/home/max/GitHub/netex/src/net/include
|
||||||
|
OBJECT_DIR = src/client/CMakeFiles/netex_client.dir
|
||||||
|
OBJECT_FILE_DIR = src/client/CMakeFiles/netex_client.dir/__/net/threads
|
||||||
|
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Link build statements for EXECUTABLE target netex_client
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Link the executable debug/bin/netex_client
|
||||||
|
|
||||||
|
build debug/bin/netex_client: C_EXECUTABLE_LINKER__netex_client_Debug src/client/CMakeFiles/netex_client.dir/main.c.o src/client/CMakeFiles/netex_client.dir/__/net/threads/thread_manager.c.o | debug/bin/libnetex.so /usr/lib/libssl.so /usr/lib/libcrypto.so || debug/bin/libnetex.so
|
||||||
|
FLAGS = -g
|
||||||
|
LINK_LIBRARIES = -Wl,-rpath,/home/max/GitHub/netex/cmake-build-debug/debug/bin debug/bin/libnetex.so /usr/lib/libssl.so /usr/lib/libcrypto.so
|
||||||
|
OBJECT_DIR = src/client/CMakeFiles/netex_client.dir
|
||||||
|
POST_BUILD = :
|
||||||
|
PRE_LINK = :
|
||||||
|
TARGET_FILE = debug/bin/netex_client
|
||||||
|
TARGET_PDB = netex_client.dbg
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for edit_cache
|
||||||
|
|
||||||
|
build src/client/CMakeFiles/edit_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug/src/client && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||||
|
DESC = No interactive CMake dialog available...
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build src/client/edit_cache: phony src/client/CMakeFiles/edit_cache.util
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Utility command for rebuild_cache
|
||||||
|
|
||||||
|
build src/client/CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
|
||||||
|
COMMAND = cd /home/max/GitHub/netex/cmake-build-debug/src/client && /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/bin/cmake --regenerate-during-build -S/home/max/GitHub/netex -B/home/max/GitHub/netex/cmake-build-debug
|
||||||
|
DESC = Running CMake to regenerate build system...
|
||||||
|
pool = console
|
||||||
|
restat = 1
|
||||||
|
|
||||||
|
build src/client/rebuild_cache: phony src/client/CMakeFiles/rebuild_cache.util
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Target aliases.
|
||||||
|
|
||||||
|
build libnetex.so: phony debug/bin/libnetex.so
|
||||||
|
|
||||||
|
build netex: phony debug/bin/libnetex.so
|
||||||
|
|
||||||
|
build netex_client: phony debug/bin/netex_client
|
||||||
|
|
||||||
|
build netex_svr: phony debug/bin/netex_svr
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Folder targets.
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Folder: /home/max/GitHub/netex/cmake-build-debug
|
||||||
|
|
||||||
|
build all: phony src/all
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Folder: /home/max/GitHub/netex/cmake-build-debug/src
|
||||||
|
|
||||||
|
build src/all: phony src/net/all src/server/all src/client/all
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Folder: /home/max/GitHub/netex/cmake-build-debug/src/client
|
||||||
|
|
||||||
|
build src/client/all: phony debug/bin/netex_client
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Folder: /home/max/GitHub/netex/cmake-build-debug/src/net
|
||||||
|
|
||||||
|
build src/net/all: phony debug/bin/libnetex.so src/net/threads/all src/net/sockets/all
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Folder: /home/max/GitHub/netex/cmake-build-debug/src/net/sockets
|
||||||
|
|
||||||
|
build src/net/sockets/all: phony
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Folder: /home/max/GitHub/netex/cmake-build-debug/src/net/threads
|
||||||
|
|
||||||
|
build src/net/threads/all: phony
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Folder: /home/max/GitHub/netex/cmake-build-debug/src/server
|
||||||
|
|
||||||
|
build src/server/all: phony debug/bin/netex_svr
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# Built-in targets
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Re-run CMake if any of its inputs changed.
|
||||||
|
|
||||||
|
build build.ninja: RERUN_CMAKE | /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeCInformation.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeCommonLanguageInclude.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeGenericSystem.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeInitializeConfigs.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeLanguageInformation.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeSystemSpecificInformation.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeSystemSpecificInitialize.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Compiler/CMakeCommonCompilerMacros.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Compiler/GNU-C.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Compiler/GNU.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindOpenSSL.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindPackageMessage.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindPkgConfig.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/Linux-GNU-C.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/Linux-GNU.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/Linux-Initialize.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/Linux.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/UnixPaths.cmake /home/max/GitHub/netex/CMakeLists.txt /home/max/GitHub/netex/src/CMakeLists.txt /home/max/GitHub/netex/src/client/CMakeLists.txt /home/max/GitHub/netex/src/net/CMakeLists.txt /home/max/GitHub/netex/src/net/sockets/CMakeLists.txt /home/max/GitHub/netex/src/net/threads/CMakeLists.txt /home/max/GitHub/netex/src/server/CMakeLists.txt CMakeCache.txt CMakeFiles/3.27.8/CMakeCCompiler.cmake CMakeFiles/3.27.8/CMakeSystem.cmake
|
||||||
|
pool = console
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# A missing CMake input file is not an error.
|
||||||
|
|
||||||
|
build /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeCInformation.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeCommonLanguageInclude.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeGenericSystem.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeInitializeConfigs.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeLanguageInformation.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeSystemSpecificInformation.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/CMakeSystemSpecificInitialize.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Compiler/CMakeCommonCompilerMacros.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Compiler/GNU-C.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Compiler/GNU.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindOpenSSL.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindPackageMessage.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/FindPkgConfig.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/Linux-GNU-C.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/Linux-GNU.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/Linux-Initialize.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/Linux.cmake /home/max/.local/share/JetBrains/Toolbox/apps/clion-nova/bin/cmake/linux/x64/share/cmake-3.27/Modules/Platform/UnixPaths.cmake /home/max/GitHub/netex/CMakeLists.txt /home/max/GitHub/netex/src/CMakeLists.txt /home/max/GitHub/netex/src/client/CMakeLists.txt /home/max/GitHub/netex/src/net/CMakeLists.txt /home/max/GitHub/netex/src/net/sockets/CMakeLists.txt /home/max/GitHub/netex/src/net/threads/CMakeLists.txt /home/max/GitHub/netex/src/server/CMakeLists.txt CMakeCache.txt CMakeFiles/3.27.8/CMakeCCompiler.cmake CMakeFiles/3.27.8/CMakeSystem.cmake: phony
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Clean all the built files.
|
||||||
|
|
||||||
|
build clean: CLEAN
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Print all primary targets available.
|
||||||
|
|
||||||
|
build help: HELP
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# Make the all target the default.
|
||||||
|
|
||||||
|
default all
|
|
@ -1,10 +1,5 @@
|
||||||
add_executable(netex
|
# src project dir
|
||||||
"list.h"
|
|
||||||
"main.c"
|
|
||||||
"exp_list.c")
|
|
||||||
target_include_directories(netex PRIVATE ${CMAKE_SOURCE_DIR}/src/include)
|
|
||||||
|
|
||||||
add_subdirectory(include)
|
|
||||||
add_subdirectory(net)
|
add_subdirectory(net)
|
||||||
add_subdirectory(server)
|
add_subdirectory(server)
|
||||||
#add_subdirectory(sockets)
|
add_subdirectory(client)
|
||||||
|
|
6
src/client/CMakeLists.txt
Normal file
6
src/client/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
add_executable(netex_client
|
||||||
|
"main.c")
|
||||||
|
|
||||||
|
target_include_directories(netex_client PRIVATE ${CMAKE_SOURCE_DIR}/src/net/include)
|
||||||
|
target_link_libraries(netex_client netex)
|
8
src/client/main.c
Normal file
8
src/client/main.c
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
//
|
||||||
|
// Created by max on 24-12-23.
|
||||||
|
//
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -1,4 +0,0 @@
|
||||||
target_sources(netex PUBLIC
|
|
||||||
"net.h"
|
|
||||||
"netex.h"
|
|
||||||
"sockets.h")
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
add_library(netex SHARED
|
||||||
|
"netex.c")
|
||||||
|
|
||||||
|
find_package(OpenSSL REQUIRED)
|
||||||
|
target_link_libraries(netex OpenSSL::SSL)
|
||||||
|
|
||||||
|
target_include_directories(netex PRIVATE ${CMAKE_SOURCE_DIR}/src/net/include)
|
||||||
|
|
||||||
|
add_subdirectory(threads)
|
||||||
|
add_subdirectory(sockets)
|
8
src/net/include/CMakeLists.txt
Normal file
8
src/net/include/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# libnet include
|
||||||
|
|
||||||
|
target_sources(netex PUBLIC
|
||||||
|
"net.h"
|
||||||
|
"netex.h"
|
||||||
|
"netexssl.h"
|
||||||
|
"netexthreads.h"
|
||||||
|
"sockets.h")
|
11
src/net/include/netexssl.h
Normal file
11
src/net/include/netexssl.h
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
//
|
||||||
|
// Created by max on 24-12-23.
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef NETEXSSL_H
|
||||||
|
#define NETEXSSL_H
|
||||||
|
|
||||||
|
void init_openssl(void);
|
||||||
|
void shutdown_openssl(void);
|
||||||
|
|
||||||
|
#endif //NETEXSSL_H
|
10
src/net/include/netexthreads.h
Normal file
10
src/net/include/netexthreads.h
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
//
|
||||||
|
// Created by max on 24-12-23.
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef NETEXTHREADS_H
|
||||||
|
#define NETEXTHREADS_H
|
||||||
|
|
||||||
|
#include <pthread.h>
|
||||||
|
|
||||||
|
#endif //NETEXTHREADS_H
|
20
src/net/netex.c
Normal file
20
src/net/netex.c
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#include "netex.h"
|
||||||
|
#include "netexssl.h"
|
||||||
|
#include <openssl/bio.h>
|
||||||
|
#include <openssl/ssl.h>
|
||||||
|
#include <openssl/err.h>
|
||||||
|
|
||||||
|
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();
|
||||||
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
target_sources(cexp PRIVATE
|
target_sources(netex PRIVATE
|
||||||
"client.c"
|
"client.c"
|
||||||
"communication.h"
|
"communication.h"
|
||||||
"sock_helper.c"
|
"sock_helper.c"
|
|
@ -5,7 +5,7 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include "cexp.h"
|
#include "netex.h"
|
||||||
#include "sockets.h"
|
#include "sockets.h"
|
||||||
#include "communication.h"
|
#include "communication.h"
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ int clientstart()
|
||||||
int connection_status = connect(client_sockfd, (struct sockaddr*) &client_sockaddr, sizeof(client_sockaddr));
|
int connection_status = connect(client_sockfd, (struct sockaddr*) &client_sockaddr, sizeof(client_sockaddr));
|
||||||
if (connection_status != 0)
|
if (connection_status != 0)
|
||||||
{
|
{
|
||||||
TRACE_ERROR("Could not connect!");
|
ERROR("Could not connect!");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
|
@ -3,7 +3,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "cexp.h"
|
#include "netex.h"
|
||||||
#include "sockets.h"
|
#include "sockets.h"
|
||||||
#include "thread_manager.h"
|
#include "thread_manager.h"
|
||||||
#include "communication.h"
|
#include "communication.h"
|
||||||
|
@ -36,13 +36,12 @@ int start_server()
|
||||||
{
|
{
|
||||||
if (fgets(inputBuffer, 90, stdin) != inputBuffer)
|
if (fgets(inputBuffer, 90, stdin) != inputBuffer)
|
||||||
{
|
{
|
||||||
TRACE_WARN("Could not get input from stdin!");
|
WARN("Could not get input from stdin!");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
TRACE_WARN("Not a valid option given!");
|
WARN("Not a valid option given!");
|
||||||
//TODO: Implement!
|
//TODO: Implement!
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +50,7 @@ int setup_server()
|
||||||
server_sockfd = socket(AF_INET, SOCK_STREAM, 0);
|
server_sockfd = socket(AF_INET, SOCK_STREAM, 0);
|
||||||
if (server_sockfd < 0)
|
if (server_sockfd < 0)
|
||||||
{
|
{
|
||||||
TRACE_ERROR("Could not create server socket!");
|
ERROR("Could not create server socket!");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +61,7 @@ int setup_server()
|
||||||
int bind_result = bind(server_sockfd, (struct sockaddr *) &server_sockaddr, sizeof(server_sockaddr));
|
int bind_result = bind(server_sockfd, (struct sockaddr *) &server_sockaddr, sizeof(server_sockaddr));
|
||||||
if (bind_result != 0)
|
if (bind_result != 0)
|
||||||
{
|
{
|
||||||
TRACE_ERROR("Cannot bind to socket!");
|
ERROR("Cannot bind to socket!");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -75,17 +74,17 @@ void* thread_listen_network()
|
||||||
int listen_result = listen(server_sockfd, 1);
|
int listen_result = listen(server_sockfd, 1);
|
||||||
if (listen_result == -1)
|
if (listen_result == -1)
|
||||||
{
|
{
|
||||||
TRACE_WARN("Could not listen. code: %i", errno);
|
WARN("Could not listen. code: %i", errno);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
int clientfd = accept(server_sockfd, NULL, NULL);
|
int clientfd = accept(server_sockfd, NULL, NULL);
|
||||||
if (clientfd == -1)
|
if (clientfd == -1)
|
||||||
{
|
{
|
||||||
TRACE_WARN("Could not accept client!");
|
WARN("Could not accept client!");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (init_thread(&clientfd, thread_client_handler) == -1)
|
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);
|
rec_result = recv(client_fd, buff, 45, 0);
|
||||||
if (rec_result == -1)
|
if (rec_result == -1)
|
||||||
{
|
{
|
||||||
TRACE_WARN("Could not recieve data from client!");
|
WARN("Could not recieve data from client!");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,7 +129,7 @@ void send_initial_pack(int client)
|
||||||
srvInitBuffer = malloc(totalBufferSize);
|
srvInitBuffer = malloc(totalBufferSize);
|
||||||
if (srvInitBuffer == NULL)
|
if (srvInitBuffer == NULL)
|
||||||
{
|
{
|
||||||
TRACE_ERROR("Could not allocate memory!");
|
ERROR("Could not allocate memory!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
*(char*)srvInitBuffer = htonl(srtLen); // Name string lengt
|
*(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
|
void* dataBuffer = ((char*)srvInitBuffer + sizeof(uint32_t) + sizeof(EMessageType)); // Push offset for string copy
|
||||||
if (strcpy(dataBuffer, srvName) != dataBuffer)
|
if (strcpy(dataBuffer, srvName) != dataBuffer)
|
||||||
{
|
{
|
||||||
TRACE_ERROR("Could not copy data to buffer!");
|
ERROR("Could not copy data to buffer!");
|
||||||
free(srvInitBuffer);
|
free(srvInitBuffer);
|
||||||
srvInitBuffer = NULL;
|
srvInitBuffer = NULL;
|
||||||
return;
|
return;
|
||||||
|
@ -154,7 +153,7 @@ void send_initial_pack(int client)
|
||||||
size_t sended = send(client, srvInitBuffer, totalBufferSize - totalDataSend, 0);
|
size_t sended = send(client, srvInitBuffer, totalBufferSize - totalDataSend, 0);
|
||||||
if (sended == -1)
|
if (sended == -1)
|
||||||
{
|
{
|
||||||
TRACE_ERROR("Could not send data.");
|
ERROR("Could not send data.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
totalDataSend += sended;
|
totalDataSend += sended;
|
|
@ -1,4 +1,4 @@
|
||||||
#include "cexp.h"
|
#include "netex.h"
|
||||||
#include "sockets.h"
|
#include "sockets.h"
|
||||||
|
|
||||||
int writeToSock(int fd, void* data, ssize_t size)
|
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);
|
dataSizeSend += send(fd, (char*)data + dataSizeSend, size - dataSizeSend, 0);
|
||||||
if (dataSizeSend == -1)
|
if (dataSizeSend == -1)
|
||||||
{
|
{
|
||||||
TRACE_WARN("Cannot send data!");
|
WARN("Cannot send data!");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ int readFromSock(int fd, void* buff, ssize_t size)
|
||||||
dataRecv += recv(fd, (char*)buff + dataRecv, size - dataRecv, 0);
|
dataRecv += recv(fd, (char*)buff + dataRecv, size - dataRecv, 0);
|
||||||
if (dataRecv == -1)
|
if (dataRecv == -1)
|
||||||
{
|
{
|
||||||
TRACE_WARN("Cannot receive data!");
|
WARN("Cannot receive data!");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "cexp.h"
|
#include "netex.h"
|
||||||
#include "thread_manager.h"
|
#include "thread_manager.h"
|
||||||
|
|
||||||
pthread_t server_listen_thread;
|
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);
|
int thread_create_result = pthread_create(&thread, NULL, func, clientfd);
|
||||||
if (thread_create_result == -1)
|
if (thread_create_result == -1)
|
||||||
{
|
{
|
||||||
TRACE_ERROR("Could not create thread!");
|
ERROR("Could not create thread!");
|
||||||
return thread_create_result;
|
return thread_create_result;
|
||||||
}
|
}
|
||||||
PRINT_LINE("Client: %d accepted on thread: %lu", *clientfd, thread);
|
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);
|
int thread_create_result = pthread_create(&server_listen_thread, NULL, func, NULL);
|
||||||
if (thread_create_result != 0)
|
if (thread_create_result != 0)
|
||||||
{
|
{
|
||||||
TRACE_ERROR("Cannot create server thread!");
|
ERROR("Cannot create server thread!");
|
||||||
return thread_create_result;
|
return thread_create_result;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
4
src/net/threads/CMakeLists.txt
Normal file
4
src/net/threads/CMakeLists.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# libnet threads
|
||||||
|
|
||||||
|
target_sources(netex PUBLIC
|
||||||
|
"thread_manager.c")
|
18
src/net/threads/thread_manager.c
Normal file
18
src/net/threads/thread_manager.c
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
//
|
||||||
|
// Created by max on 24-12-23.
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#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;
|
||||||
|
}
|
|
@ -1,2 +1,5 @@
|
||||||
target_sources(netex PUBLIC
|
add_executable(netex_svr
|
||||||
"server.c")
|
"server.c")
|
||||||
|
|
||||||
|
target_include_directories(netex_svr PRIVATE ${CMAKE_SOURCE_DIR}/src/net/include)
|
||||||
|
target_link_libraries(netex_svr netex)
|
|
@ -0,0 +1,20 @@
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#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
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user