74 instantiations of Socket
aspire (2)
Aspire.Hosting (2)
Aspire.Hosting.Tests (3)
ClientSample (1)
dotnet-svcutil-lib (2)
IIS.Common.TestLib (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IISExpress.FunctionalTests (2)
InMemory.FunctionalTests (3)
Interop.FunctionalTests (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (10)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (5)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
Microsoft.Extensions.Hosting.Systemd (1)
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
Sockets.BindTests (10)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (7)
538using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
573using (var socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp))
940using (var socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp))
948using (var socket = new Socket(addressFamily, SocketType.Stream, ProtocolType.Tcp))
1195using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
1211using (var serverSocket = new Socket(endPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp))
1250using (var socket = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp))
Sockets.FunctionalTests (10)
System.Net.HttpListener (1)
System.Net.Ping (2)
System.ServiceModel.UnixDomainSocket (1)
234 references to Socket
aspire (2)
Aspire.Hosting (8)
Aspire.Hosting.Tests (3)
ClientSample (5)
dotnet-svcutil-lib (4)
IIS.Common.TestLib (6)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IISExpress.FunctionalTests (2)
InMemory.FunctionalTests (10)
Interop.FunctionalTests (1)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.InternalTesting (5)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (10)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (22)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (3)
Microsoft.Extensions.Hosting.Systemd (1)
Microsoft.Extensions.ServiceDiscovery.Dns (8)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (4)
netstandard (1)
Sockets.BindTests (27)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (8)
538using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
573using (var socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp))
940using (var socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp))
948using (var socket = new Socket(addressFamily, SocketType.Stream, ProtocolType.Tcp))
1195using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
1211using (var serverSocket = new Socket(endPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp))
1229if (Socket.ConnectAsync(SocketType.Stream, ProtocolType.Tcp, socketArgs))
1250using (var socket = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp))
Sockets.FunctionalTests (24)
System (1)
System.Net (1)
System.Net.HttpListener (5)
System.Net.Ping (5)
System.Net.Sockets (47)
artifacts\obj\System.Net.Sockets\Debug\net10.0\System.Net.Sockets.notsupported.cs (47)
122public NetworkStream(System.Net.Sockets.Socket socket) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
123public NetworkStream(System.Net.Sockets.Socket socket, bool ownsSocket) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
124public NetworkStream(System.Net.Sockets.Socket socket, System.IO.FileAccess access) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
125public NetworkStream(System.Net.Sockets.Socket socket, System.IO.FileAccess access, bool ownsSocket) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
135public System.Net.Sockets.Socket Socket { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); } }
303public System.Net.Sockets.Socket Accept() { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
304public System.Threading.Tasks.Task<System.Net.Sockets.Socket> AcceptAsync() { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
305public System.Threading.Tasks.Task<System.Net.Sockets.Socket> AcceptAsync(System.Net.Sockets.Socket? acceptSocket) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
306public System.Threading.Tasks.ValueTask<System.Net.Sockets.Socket> AcceptAsync(System.Net.Sockets.Socket? acceptSocket, System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
308public System.Threading.Tasks.ValueTask<System.Net.Sockets.Socket> AcceptAsync(System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
311public System.IAsyncResult BeginAccept(System.Net.Sockets.Socket? acceptSocket, int receiveSize, System.AsyncCallback? callback, object? state) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
355public System.Net.Sockets.Socket EndAccept(out byte[] buffer, System.IAsyncResult asyncResult) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
356public System.Net.Sockets.Socket EndAccept(out byte[] buffer, out int bytesTransferred, System.IAsyncResult asyncResult) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
357public System.Net.Sockets.Socket EndAccept(System.IAsyncResult asyncResult) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
469public System.Net.Sockets.Socket? AcceptSocket { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); } }
474public System.Net.Sockets.Socket? ConnectSocket { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); } }
622public static System.Threading.Tasks.Task<System.Net.Sockets.Socket> AcceptAsync(this System.Net.Sockets.Socket socket) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
624public static System.Threading.Tasks.Task<System.Net.Sockets.Socket> AcceptAsync(this System.Net.Sockets.Socket socket, System.Net.Sockets.Socket? acceptSocket) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
626public static System.Threading.Tasks.Task ConnectAsync(this System.Net.Sockets.Socket socket, System.Net.EndPoint remoteEP) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
628public static System.Threading.Tasks.ValueTask ConnectAsync(this System.Net.Sockets.Socket socket, System.Net.EndPoint remoteEP, System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
630public static System.Threading.Tasks.Task ConnectAsync(this System.Net.Sockets.Socket socket, System.Net.IPAddress address, int port) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
632public static System.Threading.Tasks.ValueTask ConnectAsync(this System.Net.Sockets.Socket socket, System.Net.IPAddress address, int port, System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
634public static System.Threading.Tasks.Task ConnectAsync(this System.Net.Sockets.Socket socket, System.Net.IPAddress[] addresses, int port) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
636public static System.Threading.Tasks.ValueTask ConnectAsync(this System.Net.Sockets.Socket socket, System.Net.IPAddress[] addresses, int port, System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
638public static System.Threading.Tasks.Task ConnectAsync(this System.Net.Sockets.Socket socket, string host, int port) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
640public static System.Threading.Tasks.ValueTask ConnectAsync(this System.Net.Sockets.Socket socket, string host, int port, System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
642public static System.Threading.Tasks.Task<int> ReceiveAsync(this System.Net.Sockets.Socket socket, System.ArraySegment<byte> buffer, System.Net.Sockets.SocketFlags socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
644public static System.Threading.Tasks.Task<int> ReceiveAsync(this System.Net.Sockets.Socket socket, System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.SocketFlags socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
646public static System.Threading.Tasks.ValueTask<int> ReceiveAsync(this System.Net.Sockets.Socket socket, System.Memory<byte> buffer, System.Net.Sockets.SocketFlags socketFlags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
648public static System.Threading.Tasks.Task<System.Net.Sockets.SocketReceiveFromResult> ReceiveFromAsync(this System.Net.Sockets.Socket socket, System.ArraySegment<byte> buffer, System.Net.Sockets.SocketFlags socketFlags, System.Net.EndPoint remoteEndPoint) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
650public static System.Threading.Tasks.Task<System.Net.Sockets.SocketReceiveMessageFromResult> ReceiveMessageFromAsync(this System.Net.Sockets.Socket socket, System.ArraySegment<byte> buffer, System.Net.Sockets.SocketFlags socketFlags, System.Net.EndPoint remoteEndPoint) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
652public static System.Threading.Tasks.Task<int> SendAsync(this System.Net.Sockets.Socket socket, System.ArraySegment<byte> buffer, System.Net.Sockets.SocketFlags socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
654public static System.Threading.Tasks.Task<int> SendAsync(this System.Net.Sockets.Socket socket, System.Collections.Generic.IList<System.ArraySegment<byte>> buffers, System.Net.Sockets.SocketFlags socketFlags) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
656public static System.Threading.Tasks.ValueTask<int> SendAsync(this System.Net.Sockets.Socket socket, System.ReadOnlyMemory<byte> buffer, System.Net.Sockets.SocketFlags socketFlags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
658public static System.Threading.Tasks.Task<int> SendToAsync(this System.Net.Sockets.Socket socket, System.ArraySegment<byte> buffer, System.Net.Sockets.SocketFlags socketFlags, System.Net.EndPoint remoteEP) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
677public System.Net.Sockets.Socket Client { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); } }
718public System.Net.Sockets.Socket Server { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); } }
719public System.Net.Sockets.Socket AcceptSocket() { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
720public System.Threading.Tasks.Task<System.Net.Sockets.Socket> AcceptSocketAsync() { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
721public System.Threading.Tasks.ValueTask<System.Net.Sockets.Socket> AcceptSocketAsync(System.Threading.CancellationToken cancellationToken) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
731public System.Net.Sockets.Socket EndAcceptSocket(System.IAsyncResult asyncResult) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
761public System.Net.Sockets.Socket Client { get { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); } }
System.ServiceModel.UnixDomainSocket (5)
VBCSCompiler.UnitTests (5)