svn path=/trunk/gert/; revision=136869
This commit is contained in:
Gert Driesen 2009-06-25 18:52:15 +00:00
Родитель 191cde1db3
Коммит ff4367e37d
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -44,11 +44,8 @@ class SocketResponder : IDisposable
throw new InvalidOperationException ("This instance is already started."); throw new InvalidOperationException ("This instance is already started.");
_stopped = false; _stopped = false;
listener = new Socket (0, SocketType.Stream, ProtocolType.Tcp); listener = new Socket (AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
listener.Bind (_localEndPoint); listener.Bind (_localEndPoint);
listener.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.DontLinger, 0);
listener.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.NoDelay, 1);
listener.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.KeepAlive, 0);
listener.Blocking = true; listener.Blocking = true;
listener.Listen (-1); listener.Listen (-1);
listenThread = new Thread (new ThreadStart (Listen)); listenThread = new Thread (new ThreadStart (Listen));