52 references to SocketException
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
486
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
SocketException
((int)_asyncWriteEventArgs.SocketError));
725
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
SocketException
((int)_asyncReadEventArgs.SocketError));
System.Net.NameResolution (2)
System\Net\Dns.cs (2)
480
exception = new
SocketException
((int)SocketError.HostNotFound);
984
new
SocketException
((int)error) { HResult = nativeError };
System.Net.Ping (1)
src\runtime\src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
29
throw new
SocketException
((int)SocketError.AddressFamilyNotSupported);
System.Net.Primitives (1)
src\runtime\src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
29
throw new
SocketException
((int)SocketError.AddressFamilyNotSupported);
System.Net.Quic (6)
src\runtime\src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
29
throw new
SocketException
((int)SocketError.AddressFamilyNotSupported);
System\Net\Quic\Internal\ThrowHelper.cs (4)
83
if (status == QUIC_STATUS_INVALID_ADDRESS) return new
SocketException
((int)SocketError.AddressNotAvailable);
84
if (status == QUIC_STATUS_ADDRESS_IN_USE) return new
SocketException
((int)SocketError.AddressAlreadyInUse);
85
if (status == QUIC_STATUS_UNREACHABLE) return new
SocketException
((int)SocketError.HostUnreachable);
86
if (status == QUIC_STATUS_ADDRESS_NOT_AVAILABLE) return new
SocketException
((int)SocketError.AddressFamilyNotSupported);
System\Net\Quic\QuicConnection.cs (1)
401
throw new
SocketException
((int)SocketError.HostNotFound);
System.Net.Sockets (38)
src\runtime\src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
29
throw new
SocketException
((int)SocketError.AddressFamilyNotSupported);
System\Net\Sockets\Socket.cs (19)
92
throw new
SocketException
((int)errorCode);
1133
throw new
SocketException
((int)errorCode);
1162
if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new
SocketException
((int)errorCode));
1184
throw new
SocketException
((int)errorCode);
1210
if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new
SocketException
((int)errorCode));
1237
throw new
SocketException
((int)errorCode);
1255
if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new
SocketException
((int)errorCode));
1536
throw new
SocketException
((int)errorCode);
1559
if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new
SocketException
((int)errorCode));
1582
throw new
SocketException
((int)errorCode);
1600
if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new
SocketException
((int)errorCode));
1627
throw new
SocketException
((int)errorCode);
1657
if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new
SocketException
((int)errorCode));
1841
socketException = new
SocketException
((int)errorCode);
1965
socketException = new
SocketException
((int)errorCode);
2041
SocketException socketException = new
SocketException
((int)errorCode);
2425
throw new
SocketException
((int)errorCode);
3925
var socketException = new
SocketException
((int)error);
4051
throw new
SocketException
((int)SocketError.IsConnected);
System\Net\Sockets\Socket.Tasks.cs (3)
162
throw new
SocketException
((int)SocketError.IsConnected);
903
Exception e = ExceptionDispatchInfo.SetCurrentStackTrace(new
SocketException
((int)error));
1370
Exception e = new
SocketException
((int)error);
System\Net\Sockets\Socket.Unix.cs (4)
73
throw new
SocketException
((int)SocketError.NotSocket);
81
throw new
SocketException
((int)SocketError.NotSocket);
127
throw new
SocketException
((int)errorCode);
177
throw new
SocketException
((int)SocketError.InvalidArgument);
System\Net\Sockets\SocketAsyncContext.Unix.cs (1)
1367
throw new
SocketException
((int)SocketPal.GetSocketErrorForErrorCode(Interop.Sys.GetLastError()));
System\Net\Sockets\SocketAsyncEventArgs.cs (2)
835
caughtException = new
SocketException
((int)lastError);
840
caughtException = new
SocketException
((int)SocketError.OperationAborted);
System\Net\Sockets\SocketPal.Unix.cs (4)
2123
throw new
SocketException
((int)error);
2134
throw new
SocketException
((int)error);
2180
throw new
SocketException
((int)GetSocketErrorForErrorCode(err));
2194
throw new
SocketException
((int)errorCode);
System\Net\Sockets\UDPClient.cs (4)
432
throw new
SocketException
((int)SocketError.OperationNotSupported);
452
throw new
SocketException
((int)SocketError.OperationNotSupported);
520
throw new
SocketException
((int)SocketError.OperationNotSupported);
800
throw new
SocketException
((int)SocketError.NotConnected);
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
103
return new
SocketException
((int)e);
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
103
return new
SocketException
((int)e);