37 references to SetSocketOption
System (26)
net\System\Net\ServicePoint.cs (3)
320
finalSocket.
SetSocketOption
(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, 1);
323
finalSocket.
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ReceiveBuffer, ReceiveBufferSize);
1329
socket.
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ReuseUnicastPort, 0x1);
net\System\Net\Sockets\Socket.cs (16)
632
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ExclusiveAddressUse, value ? 1 : 0);
647
SetSocketOption
(SocketOptionLevel.Socket,
663
SetSocketOption
(SocketOptionLevel.Socket,
681
SetSocketOption
(SocketOptionLevel.Socket,
699
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, value);
717
SetSocketOption
(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, value ? 1 : 0);
742
SetSocketOption
(SocketOptionLevel.IP, SocketOptionName.IpTimeToLive, value);
746
SetSocketOption
(SocketOptionLevel.IPv6, SocketOptionName.IpTimeToLive, value);
766
SetSocketOption
(SocketOptionLevel.IP, SocketOptionName.DontFragment, value ? 1 : 0);
789
SetSocketOption
(SocketOptionLevel.IP, SocketOptionName.MulticastLoopback, value ? 1 : 0);
793
SetSocketOption
(SocketOptionLevel.IPv6, SocketOptionName.MulticastLoopback, value ? 1 : 0);
807
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.Broadcast, value ? 1 : 0);
822
SetSocketOption
(SocketOptionLevel.IPv6, SocketOptionName.IPv6Only, value ? 0 : 1);
2285
SetSocketOption
(SocketOptionLevel.IPv6, SocketOptionName.IPProtectionLevel, (int)level);
2288
SetSocketOption
(SocketOptionLevel.IP, SocketOptionName.IPProtectionLevel, (int)level);
2351
SetSocketOption
(optionLevel,optionName,(optionValue?1:0));
net\System\Net\Sockets\TCPClient.cs (5)
521
Client.
SetSocketOption
(SocketOptionLevel.Socket,
540
Client.
SetSocketOption
(SocketOptionLevel.Socket,
556
Client.
SetSocketOption
(SocketOptionLevel.Socket,
572
Client.
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, value);
600
Client.
SetSocketOption
(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, value ? 1 : 0);
net\System\Net\Sockets\UDPClient.cs (2)
497
Client.
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.Broadcast, 1);
919
Client.
SetSocketOption
(
System.Runtime.Remoting (7)
channels\core\exclusivetcplistener.cs (2)
42
base.Server.
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ExclusiveAddressUse, 1);
55
Server.
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ExclusiveAddressUse, 0);
channels\core\socketcache.cs (1)
98
socket.
SetSocketOption
(SocketOptionLevel.Tcp,
channels\http\httpserverchannel.cs (2)
464
socket.
SetSocketOption
(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, 1);
466
socket.
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, 1);
channels\tcp\tcpserverchannel.cs (2)
412
socket.
SetSocketOption
(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, 1);
414
socket.
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, 1);
System.ServiceModel (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
2109
this.listenSocket.
SetSocketOption
(SocketOptionLevel.IPv6, (SocketOptionName)23, 10);
System.ServiceModel.Channels (3)
System\ServiceModel\Channels\UdpUtility.cs (3)
456
socket.
SetSocketOption
(ipOptionLevel, SocketOptionName.MulticastTimeToLive, timeToLive);
463
socket.
SetSocketOption
(ipOptionLevel, SocketOptionName.MulticastInterface, index);
475
socket.
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, 1);