23 references to SetSocketOption
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
89socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.HeaderIncluded, 1);
System.Net.Requests (2)
System\Net\HttpWebRequest.cs (2)
1778socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.TcpKeepAliveTime, keepAlive.Time); 1779socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.TcpKeepAliveInterval, keepAlive.Interval);
System.Net.Sockets (20)
System\Net\Sockets\Socket.cs (14)
508SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ExclusiveAddressUse, value ? 1 : 0); 522SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveBuffer, value); 537SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendBuffer, value); 557SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, value); 578SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, value); 607SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, value ? 1 : 0); 637SetSocketOption(SocketOptionLevel.IP, SocketOptionName.IpTimeToLive, value); 642SetSocketOption(SocketOptionLevel.IPv6, SocketOptionName.IpTimeToLive, value); 673SetSocketOption(SocketOptionLevel.IP, SocketOptionName.DontFragment, value ? 1 : 0); 709SetSocketOption(SocketOptionLevel.IP, SocketOptionName.MulticastLoopback, value ? 1 : 0); 714SetSocketOption(SocketOptionLevel.IPv6, SocketOptionName.MulticastLoopback, value ? 1 : 0); 736SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, value ? 1 : 0); 767SetSocketOption(SocketOptionLevel.IPv6, SocketOptionName.IPv6Only, value ? 0 : 1); 2109SetSocketOption(optionLevel, optionName, (optionValue ? 1 : 0));
System\Net\Sockets\TCPClient.cs (4)
309set { Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveBuffer, value); } 316set { Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendBuffer, value); } 330Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, value); 345Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, value);
System\Net\Sockets\UDPClient.cs (2)
262_clientSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, 1); 471_clientSocket.SetSocketOption(