diff --git a/AmeisenNavigation.Server/AmeisenNavigation.Server.vcxproj b/AmeisenNavigation.Server/AmeisenNavigation.Server.vcxproj
index e3fa7ea..607f8cb 100644
--- a/AmeisenNavigation.Server/AmeisenNavigation.Server.vcxproj
+++ b/AmeisenNavigation.Server/AmeisenNavigation.Server.vcxproj
@@ -75,7 +75,7 @@
build\$(Platform)\$(Configuration)\
build\$(Platform)\int\$(Configuration)\
AmeisenNavigationServer
- $(SolutionDir)dep\AnTCP.Server\lib\$(Configuration)\x86\;$(SolutionDir)AmeisenNavigation\build\$(Platform)\$(Configuration)\;$(SolutionDir)recastnavigation\build\$(Platform)\$(Configuration)\;$(LibraryPath)
+ $(SolutionDir)dep\AnTCP.Server\lib\$(Platform)\$(Configuration)\;$(SolutionDir)AmeisenNavigation\build\$(Platform)\$(Configuration)\;$(SolutionDir)recastnavigation\build\$(Platform)\$(Configuration)\;$(LibraryPath)
$(SolutionDir)dep\AnTCP.Server\include\;$(IncludePath)
@@ -83,7 +83,7 @@
build\$(Platform)\$(Configuration)\
build\$(Platform)\int\$(Configuration)\
AmeisenNavigationServer
- $(SolutionDir)dep\AnTCP.Server\lib\$(Configuration)\x86\;$(SolutionDir)AmeisenNavigation\build\$(Platform)\$(Configuration)\;$(SolutionDir)recastnavigation\build\$(Platform)\$(Configuration)\;$(LibraryPath)
+ $(SolutionDir)dep\AnTCP.Server\lib\$(Platform)\$(Configuration)\;$(SolutionDir)AmeisenNavigation\build\$(Platform)\$(Configuration)\;$(SolutionDir)recastnavigation\build\$(Platform)\$(Configuration)\;$(LibraryPath)
$(SolutionDir)dep\AnTCP.Server\include\;$(IncludePath)
@@ -91,7 +91,7 @@
build\$(Platform)\$(Configuration)\
build\$(Platform)\int\$(Configuration)\
AmeisenNavigationServer
- $(SolutionDir)dep\AnTCP.Server\lib\$(Configuration)\x64\;$(SolutionDir)AmeisenNavigation\build\$(Platform)\$(Configuration)\;$(SolutionDir)recastnavigation\build\$(Platform)\$(Configuration)\;$(LibraryPath)
+ $(SolutionDir)dep\AnTCP.Server\lib\$(Platform)\$(Configuration)\;$(SolutionDir)AmeisenNavigation\build\$(Platform)\$(Configuration)\;$(SolutionDir)recastnavigation\build\$(Platform)\$(Configuration)\;$(LibraryPath)
$(SolutionDir)dep\AnTCP.Server\include\;$(IncludePath)
@@ -99,7 +99,7 @@
build\$(Platform)\$(Configuration)\
build\$(Platform)\int\$(Configuration)\
AmeisenNavigationServer
- $(SolutionDir)dep\AnTCP.Server\lib\$(Configuration)\x64\;$(SolutionDir)AmeisenNavigation\build\$(Platform)\$(Configuration)\;$(SolutionDir)recastnavigation\build\$(Platform)\$(Configuration)\;$(LibraryPath)
+ $(SolutionDir)dep\AnTCP.Server\lib\$(Platform)\$(Configuration)\;$(SolutionDir)AmeisenNavigation\build\$(Platform)\$(Configuration)\;$(SolutionDir)recastnavigation\build\$(Platform)\$(Configuration)\;$(LibraryPath)
$(SolutionDir)dep\AnTCP.Server\include\;$(IncludePath)
diff --git a/AmeisenNavigation.Tester/AmeisenNavigation.Tester.csproj b/AmeisenNavigation.Tester/AmeisenNavigation.Tester.csproj
index e21510d..cbff3e1 100644
--- a/AmeisenNavigation.Tester/AmeisenNavigation.Tester.csproj
+++ b/AmeisenNavigation.Tester/AmeisenNavigation.Tester.csproj
@@ -17,7 +17,7 @@
-
+
diff --git a/dep/AnTCP.Client.1.0.0.nupkg b/dep/AnTCP.Client.1.0.0.nupkg
deleted file mode 100644
index 89824d6..0000000
Binary files a/dep/AnTCP.Client.1.0.0.nupkg and /dev/null differ
diff --git a/dep/AnTCP.Server/include/AnTcpServer.hpp b/dep/AnTCP.Server/include/AnTcpServer.hpp
index f8c57e4..ee879c7 100644
--- a/dep/AnTCP.Server/include/AnTcpServer.hpp
+++ b/dep/AnTCP.Server/include/AnTcpServer.hpp
@@ -151,10 +151,10 @@ class ClientHandler
/// True if data was sent, false if not.
inline bool SendData(AnTcpMessageType type, const void* data, size_t size) const noexcept
{
- const size_t packetSize = size + sizeof(AnTcpMessageType);
- return send(Socket, reinterpret_cast(&packetSize), static_cast(sizeof(decltype(packetSize))), 0) != SOCKET_ERROR
- && send(Socket, &type, static_cast(sizeof(AnTcpMessageType)), 0) != SOCKET_ERROR
- && send(Socket, static_cast(data), static_cast(size), 0) != SOCKET_ERROR;
+ const int packetSize = size + static_cast(sizeof(AnTcpMessageType));
+ return send(Socket, reinterpret_cast(&packetSize), sizeof(decltype(packetSize)), 0) != SOCKET_ERROR
+ && send(Socket, &type, sizeof(AnTcpMessageType), 0) != SOCKET_ERROR
+ && send(Socket, static_cast(data), size, 0) != SOCKET_ERROR;
}
///
@@ -342,8 +342,7 @@ class AnTcpServer
inline void Stop() noexcept
{
ShouldExit = true;
- closesocket(ListenSocket);
- ListenSocket = INVALID_SOCKET;
+ SocketCleanup();
Clients.clear();
WSACleanup();
}
diff --git a/dep/AnTCP.Server/lib/Debug/x64/AnTCP.Server.lib b/dep/AnTCP.Server/lib/Debug/x64/AnTCP.Server.lib
deleted file mode 100644
index b7941e2..0000000
Binary files a/dep/AnTCP.Server/lib/Debug/x64/AnTCP.Server.lib and /dev/null differ
diff --git a/dep/AnTCP.Server/lib/Debug/x86/AnTCP.Server.lib b/dep/AnTCP.Server/lib/Debug/x86/AnTCP.Server.lib
deleted file mode 100644
index 97a78d8..0000000
Binary files a/dep/AnTCP.Server/lib/Debug/x86/AnTCP.Server.lib and /dev/null differ
diff --git a/dep/AnTCP.Server/lib/Release/x64/AnTCP.Server.lib b/dep/AnTCP.Server/lib/Release/x64/AnTCP.Server.lib
deleted file mode 100644
index e757f6b..0000000
Binary files a/dep/AnTCP.Server/lib/Release/x64/AnTCP.Server.lib and /dev/null differ
diff --git a/dep/AnTCP.Server/lib/Release/x86/AnTCP.Server.lib b/dep/AnTCP.Server/lib/Release/x86/AnTCP.Server.lib
deleted file mode 100644
index e000ff5..0000000
Binary files a/dep/AnTCP.Server/lib/Release/x86/AnTCP.Server.lib and /dev/null differ