5 references to SetSocketOption
Aspire.Hosting.Tests (1)
Dcp\ProxylessEndpointPortAllocatorTests.cs (1)
346
listener.
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1808
socket.
SetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, true);
System.Net.Sockets (3)
System\Net\Sockets\Socket.cs (2)
3601
SetSocketOption
(SocketOptionLevel.IP, SocketOptionName.PacketInformation, true);
3612
SetSocketOption
(SocketOptionLevel.IPv6, SocketOptionName.PacketInformation, true);
System\Net\Sockets\SocketPal.Unix.cs (1)
1623
socket.
SetSocketOption
(SocketOptionLevel.IP, SocketOptionName.PacketInformation, true);