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