65 references to Socket
Aspire.Hosting (1)
Dcp\DcpHost.cs (1)
253
var socket = new
Socket
(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified);
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
927
socket = new
Socket
(addressFamily, SocketType.Stream, ProtocolType.Tcp);
944
socket = new
Socket
(addressFamily, SocketType.Stream, ProtocolType.Tcp);
IIS.Common.TestLib (1)
TestConnections.cs (1)
245
var socket = new
Socket
(addressFamily, SocketType.Stream, ProtocolType.Tcp);
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
161
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1443
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1443
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1443
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
161
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1443
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
InMemory.FunctionalTests (3)
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
48
using (Socket listener = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
53
var clientSocket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
src\Servers\Kestrel\shared\test\TestConnection.cs (1)
65
var socket = new
Socket
(addressFamily, SocketType.Stream, ProtocolType.Tcp);
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Common\TestPortHelper.cs (2)
24
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
37
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
Deployers\NginxDeployer.cs (1)
45
_portSelector = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
48
using (Socket listener = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
53
var clientSocket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
src\Servers\Kestrel\shared\test\TestConnection.cs (1)
65
var socket = new
Socket
(addressFamily, SocketType.Stream, ProtocolType.Tcp);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicConnectionListenerTests.cs (1)
289
using var socket = new
Socket
(endpoint.AddressFamily, SocketType.Dgram, ProtocolType.Udp);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (4)
Client\SocketConnectionFactory.cs (1)
56
var socket = new
Socket
(ipEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp)
SocketTransportOptions.cs (3)
140
listenSocket = new
Socket
(unix.AddressFamily, SocketType.Stream, ProtocolType.Unspecified);
143
listenSocket = new
Socket
(ip.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
153
listenSocket = new
Socket
(endpoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
Microsoft.Extensions.Hosting.Systemd (1)
SystemdNotifier.cs (1)
50
using (var socket = new
Socket
(AddressFamily.Unix, SocketType.Dgram, ProtocolType.Unspecified))
Sockets.BindTests (10)
SocketTransportOptionsTests.cs (1)
106
var fileHandleSocket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
src\Servers\Kestrel\shared\test\TestConnection.cs (1)
65
var socket = new
Socket
(addressFamily, SocketType.Stream, ProtocolType.Tcp);
src\Servers\Kestrel\shared\test\TransportTestHelpers\IPv6SupportedConditionAttribute.cs (1)
24
using (var socket = new
Socket
(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp))
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (7)
538
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
573
using (var socket = new
Socket
(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp))
940
using (var socket = new
Socket
(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp))
948
using (var socket = new
Socket
(addressFamily, SocketType.Stream, ProtocolType.Tcp))
1195
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
1211
using (var serverSocket = new
Socket
(endPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp))
1250
using (var socket = new
Socket
(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp))
Sockets.FunctionalTests (10)
src\Servers\Kestrel\shared\test\TestConnection.cs (1)
65
var socket = new
Socket
(addressFamily, SocketType.Stream, ProtocolType.Tcp);
src\Servers\Kestrel\shared\test\TransportTestHelpers\IPv6SupportedConditionAttribute.cs (1)
24
using (var socket = new
Socket
(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp))
src\Servers\Kestrel\test\FunctionalTests\ListenHandleTests.cs (1)
29
new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
378
var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (4)
116
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
568
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
615
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
709
using (var socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (2)
97
using (var socket = new
Socket
(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified))
165
using (var socket = new
Socket
(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified))
System.IO.Pipes (2)
System\IO\Pipes\NamedPipeClientStream.Unix.cs (1)
38
var socket = new
Socket
(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified);
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
326
var socket = new
Socket
(AddressFamily.Unix, SocketType.Stream, ProtocolType.Unspecified);
System.Net.HttpListener (1)
System\Net\Managed\HttpEndPointListener.cs (1)
63
_socket = new
Socket
(addr.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
System.Net.Ping (2)
src\libraries\Common\src\System\Net\RawSocketPermissions.cs (1)
25
new
Socket
(addressFamily, SocketType.Raw, addressFamily == AddressFamily.InterNetwork ? ProtocolType.Icmp : ProtocolType.IcmpV6).Dispose();
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
69
Socket socket = new
Socket
(addrFamily, socketType, socketConfig.ProtocolType);
System.Net.Requests (1)
System\Net\FtpControlStream.cs (1)
1168
Socket socket = new
Socket
(templateSocket.AddressFamily, templateSocket.SocketType, templateSocket.ProtocolType);
System.Net.Sockets (13)
System\Net\Sockets\Socket.cs (3)
73
:
this
(OSSupportsIPv6DualMode ? AddressFamily.InterNetworkV6 : AddressFamily.InterNetwork, socketType, protocolType)
3004
Socket? attemptSocket = dnsEP.AddressFamily != AddressFamily.Unspecified ? new
Socket
(dnsEP.AddressFamily, socketType, protocolType) : null;
3019
Socket attemptSocket = new
Socket
(endPointSnapshot.AddressFamily, socketType, protocolType);
System\Net\Sockets\SocketAsyncEventArgs.cs (2)
738
attemptSocket = tempSocketIPv6 ??= (Socket.OSSupportsIPv6 ? new
Socket
(AddressFamily.InterNetworkV6, socketType, protocolType) : null);
747
attemptSocket = tempSocketIPv4 ??= (Socket.OSSupportsIPv4 ? new
Socket
(AddressFamily.InterNetwork, socketType, protocolType) : null);
System\Net\Sockets\TCPClient.cs (1)
385
_clientSocket = new
Socket
(_family, SocketType.Stream, ProtocolType.Tcp);
System\Net\Sockets\TCPListener.cs (4)
29
_serverSocket = new
Socket
(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
45
_serverSocket = new
Socket
(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
58
_serverSocket = new
Socket
(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
276
_serverSocket ??= new
Socket
(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
System\Net\Sockets\UDPClient.cs (3)
663
_clientSocket = new
Socket
(_family, SocketType.Dgram, ProtocolType.Udp);
714
ipv4Socket = new
Socket
(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
718
ipv6Socket = new
Socket
(AddressFamily.InterNetworkV6, SocketType.Dgram, ProtocolType.Udp);
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
778
socket = new
Socket
(addressFamily, SocketType.Stream, ProtocolType.IP);