Skip to content

Commit

Permalink
move mux_tunnels functions to new files; improve keep alive cycles
Browse files Browse the repository at this point in the history
  • Loading branch information
cnbatch committed Nov 16, 2023
1 parent c1eef3b commit 4531d38
Show file tree
Hide file tree
Showing 12 changed files with 941 additions and 1,182 deletions.
2 changes: 2 additions & 0 deletions sln/kcptube/kcptube.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<ClCompile Include="..\..\src\networks\connections.cpp" />
<ClCompile Include="..\..\src\networks\kcp.cpp" />
<ClCompile Include="..\..\src\networks\kcp_updater.cpp" />
<ClCompile Include="..\..\src\networks\mux_tunnel.cpp" />
<ClCompile Include="..\..\src\networks\relay.cpp" />
<ClCompile Include="..\..\src\networks\server.cpp" />
<ClCompile Include="..\..\src\networks\stun.cpp" />
Expand All @@ -47,6 +48,7 @@
<ClInclude Include="..\..\src\networks\connections.hpp" />
<ClInclude Include="..\..\src\networks\kcp.hpp" />
<ClInclude Include="..\..\src\networks\kcp_updater.hpp" />
<ClInclude Include="..\..\src\networks\mux_tunnel.hpp" />
<ClInclude Include="..\..\src\networks\relay.hpp" />
<ClInclude Include="..\..\src\networks\server.hpp" />
<ClInclude Include="..\..\src\networks\stun.hpp" />
Expand Down
6 changes: 6 additions & 0 deletions sln/kcptube/kcptube.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
<ClCompile Include="..\..\src\networks\kcp_updater.cpp">
<Filter>Source Files\networks</Filter>
</ClCompile>
<ClCompile Include="..\..\src\networks\mux_tunnel.cpp">
<Filter>Source Files\networks</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\shares\share_defines.hpp">
Expand Down Expand Up @@ -116,5 +119,8 @@
<ClInclude Include="..\..\src\networks\kcp_updater.hpp">
<Filter>Header Files\networks</Filter>
</ClInclude>
<ClInclude Include="..\..\src\networks\mux_tunnel.hpp">
<Filter>Header Files\networks</Filter>
</ClInclude>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
int main(int argc, char *argv[])
{
char app_name[] = "kcptube";
printf("%s version 20231112\n", app_name);
printf("%s version 20231116\n", app_name);

if (argc <= 1)
{
Expand Down
2 changes: 1 addition & 1 deletion src/networks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set(THISLIB_NAME NETCONNECTIONS)

add_library(${THISLIB_NAME} STATIC "connections.cpp" "client.cpp" "kcp.cpp" "kcp_updater.cpp" "server.cpp" "stun.cpp" "relay.cpp")
add_library(${THISLIB_NAME} STATIC "connections.cpp" "client.cpp" "kcp.cpp" "kcp_updater.cpp" "mux_tunnel.cpp" "server.cpp" "stun.cpp" "relay.cpp")
target_link_libraries(${THISLIB_NAME} PRIVATE SHAREDEFINES)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
Expand Down
Loading

0 comments on commit 4531d38

Please sign in to comment.