55 references to SocketException
ClientSample (1)
Tcp\SocketAwaitable.cs (1)
42throw new SocketException((int)_error);
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
486throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException((int)_asyncWriteEventArgs.SocketError)); 725throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException((int)_asyncReadEventArgs.SocketError));
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketAwaitableEventArgs.cs (1)
61return new SocketException((int)e);
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
80throw new SocketException((int)socketArgs.SocketError);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
80throw new SocketException((int)socketArgs.SocketError);
System.Net.NameResolution (1)
System\Net\Dns.cs (1)
741new SocketException((int)error) { HResult = nativeError };
System.Net.Ping (1)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
29throw new SocketException((int)SocketError.AddressFamilyNotSupported);
System.Net.Primitives (1)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
29throw new SocketException((int)SocketError.AddressFamilyNotSupported);
System.Net.Quic (6)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
29throw new SocketException((int)SocketError.AddressFamilyNotSupported);
System\Net\Quic\Internal\ThrowHelper.cs (4)
83if (status == QUIC_STATUS_INVALID_ADDRESS) return new SocketException((int)SocketError.AddressNotAvailable); 84if (status == QUIC_STATUS_ADDRESS_IN_USE) return new SocketException((int)SocketError.AddressAlreadyInUse); 85if (status == QUIC_STATUS_UNREACHABLE) return new SocketException((int)SocketError.HostUnreachable); 86if (status == QUIC_STATUS_ADDRESS_NOT_AVAILABLE) return new SocketException((int)SocketError.AddressFamilyNotSupported);
System\Net\Quic\QuicConnection.cs (1)
400throw new SocketException((int)SocketError.HostNotFound);
System.Net.Sockets (39)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
29throw new SocketException((int)SocketError.AddressFamilyNotSupported);
System\Net\Sockets\Socket.cs (19)
92throw new SocketException((int)errorCode); 1134throw new SocketException((int)errorCode); 1163if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1185throw new SocketException((int)errorCode); 1211if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1238throw new SocketException((int)errorCode); 1256if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1530throw new SocketException((int)errorCode); 1553if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1576throw new SocketException((int)errorCode); 1594if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1621throw new SocketException((int)errorCode); 1651if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1835socketException = new SocketException((int)errorCode); 1959socketException = new SocketException((int)errorCode); 2035SocketException socketException = new SocketException((int)errorCode); 2419throw new SocketException((int)errorCode); 3911var socketException = new SocketException((int)error); 4037throw new SocketException((int)SocketError.IsConnected);
System\Net\Sockets\Socket.Tasks.cs (3)
184throw new SocketException((int)SocketError.IsConnected); 925Exception e = ExceptionDispatchInfo.SetCurrentStackTrace(new SocketException((int)error)); 1391Exception e = new SocketException((int)error);
System\Net\Sockets\Socket.Unix.cs (4)
71throw new SocketException((int)SocketError.NotSocket); 79throw new SocketException((int)SocketError.NotSocket); 125throw new SocketException((int)errorCode); 199throw new SocketException((int)SocketError.InvalidArgument);
System\Net\Sockets\SocketAsyncContext.Unix.cs (1)
1358throw new SocketException((int)SocketPal.GetSocketErrorForErrorCode(Interop.Sys.GetLastError()));
System\Net\Sockets\SocketAsyncEventArgs.cs (3)
792throw new SocketException((int)SocketError.OperationAborted); 799caughtException = new SocketException((int)lastError); 804caughtException = new SocketException((int)SocketError.OperationAborted);
System\Net\Sockets\SocketPal.Unix.cs (4)
2123throw new SocketException((int)error); 2134throw new SocketException((int)error); 2180throw new SocketException((int)GetSocketErrorForErrorCode(err)); 2194throw new SocketException((int)errorCode);
System\Net\Sockets\UDPClient.cs (4)
427throw new SocketException((int)SocketError.OperationNotSupported); 447throw new SocketException((int)SocketError.OperationNotSupported); 515throw new SocketException((int)SocketError.OperationNotSupported); 795throw new SocketException((int)SocketError.NotConnected);
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
103return new SocketException((int)e);