aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Transport/Servers
diff options
context:
space:
mode:
authorMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
committerMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
commit00a491d93733d4625ad329b2ba8237f445364b3f (patch)
tree4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/Tango.Transport/Servers
parent124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff)
downloadTango-00a491d9.tar.gz
Tango-00a491d9.zip
merge
Diffstat (limited to 'Software/Visual_Studio/Tango.Transport/Servers')
-rw-r--r--Software/Visual_Studio/Tango.Transport/Servers/TcpServer.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.Transport/Servers/TcpServer.cs b/Software/Visual_Studio/Tango.Transport/Servers/TcpServer.cs
index 54e9b6a32..29cc3c7e8 100644
--- a/Software/Visual_Studio/Tango.Transport/Servers/TcpServer.cs
+++ b/Software/Visual_Studio/Tango.Transport/Servers/TcpServer.cs
@@ -58,11 +58,9 @@ namespace Tango.Transport.Servers
if (!IsStarted)
{
Listener = new TcpListener(System.Net.IPAddress.Any, Port);
- Listener.ExclusiveAddressUse = false;
- Listener.Server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
Listener.Start();
IsStarted = true;
- LogManager.Log($"TCP server started on port {Port}.");
+ LogManager.Log($"TCP started on port {Port}.");
WaitForConnection();
}
}
@@ -75,7 +73,7 @@ namespace Tango.Transport.Servers
{
Listener.Stop();
IsStarted = false;
- LogManager.Log($"TCP server stopped on port {Port}.");
+ LogManager.Log($"TCP stopped on port {Port}.");
}
}