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