summaryrefslogtreecommitdiff
path: root/Ivy/IvyClient.cs
diff options
context:
space:
mode:
authorfcolin2009-07-16 07:38:54 +0000
committerfcolin2009-07-16 07:38:54 +0000
commitfc9967263d5aaaa5511eac622404b76e4d1166eb (patch)
tree6fd4950fb03a34e34ca1da970a784cbfd65ee35b /Ivy/IvyClient.cs
parent3c9d0c18a19de1f1ec1c4e77f6b89fdf84d39605 (diff)
downloadivy-csharp-fc9967263d5aaaa5511eac622404b76e4d1166eb.zip
ivy-csharp-fc9967263d5aaaa5511eac622404b76e4d1166eb.tar.gz
ivy-csharp-fc9967263d5aaaa5511eac622404b76e4d1166eb.tar.bz2
ivy-csharp-fc9967263d5aaaa5511eac622404b76e4d1166eb.tar.xz
maj TCP nodelay
correction pb SetsockOption Reuseaddr
Diffstat (limited to 'Ivy/IvyClient.cs')
-rw-r--r--Ivy/IvyClient.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Ivy/IvyClient.cs b/Ivy/IvyClient.cs
index 8421443..d832dca 100644
--- a/Ivy/IvyClient.cs
+++ b/Ivy/IvyClient.cs
@@ -121,6 +121,8 @@ namespace IvyBus
this.appPort = appPort;
this.bus = bus;
+ // set TCP_NODELAY to lower latency
+ socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.NoDelay, true);
localPort = ((IPEndPoint)socket.LocalEndPoint).Port;
IPEndPoint endpoint = (IPEndPoint)socket.RemoteEndPoint;