52 references to SocketError
ClientSample (5)
Tcp\SocketReceiver.cs (2)
23_eventArgs.Completed += (_, e) => ((SocketAwaitable)e.UserToken).Complete(e.BytesTransferred, e.SocketError); 37_awaitable.Complete(_eventArgs.BytesTransferred, _eventArgs.SocketError);
Tcp\SocketSender.cs (3)
28_eventArgs.Completed += (_, e) => ((SocketAwaitable)e.UserToken).Complete(e.BytesTransferred, e.SocketError); 51_awaitable.Complete(_eventArgs.BytesTransferred, _eventArgs.SocketError); 74_awaitable.Complete(_eventArgs.BytesTransferred, _eventArgs.SocketError);
dotnet-svcutil-lib (4)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (4)
481if (_asyncWriteEventArgs.SocketError == SocketError.Success) 486throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException((int)_asyncWriteEventArgs.SocketError)); 720if (_asyncReadEventArgs.SocketError == SocketError.Success) 725throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException((int)_asyncReadEventArgs.SocketError));
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
191throw new SocketException((int)socketArgs.SocketError, $"Failed to connect to server {requestUri.Host} on port {requestUri.Port}");
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (7)
Internal\SocketAwaitableEventArgs.cs (3)
51if (SocketError != SocketError.Success) 53return new SocketOperationResult(CreateException(SocketError)); 67SocketError == SocketError.Success ? ValueTaskSourceStatus.Succeeded :
Internal\SocketReceiver.cs (2)
25var error = SocketError; 42var error = SocketError;
Internal\SocketSender.cs (2)
35var error = SocketError; 69var error = SocketError;
Sockets.BindTests (3)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
80throw new SocketException((int)socketArgs.SocketError);
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (2)
1231return mre.Wait(5000) && socketArgs.SocketError == SocketError.Success; 1236return socketArgs.SocketError == SocketError.Success;
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
80throw new SocketException((int)socketArgs.SocketError);
System.Net.HttpListener (1)
System\Net\Managed\HttpEndPointListener.cs (1)
110Socket? accepted = args.SocketError == SocketError.Success ? args.AcceptSocket : null;
System.Net.Sockets (23)
System\Net\Sockets\Socket.Tasks.cs (19)
874if (saea.SocketError == SocketError.Success) 883t = Task.FromException<int>(GetException(saea.SocketError, wrapExceptionsInIOExceptions: fromNetworkStream)); 897SocketError error = saea.SocketError; 1052SocketError error = SocketError; 1074SocketError error = SocketError; 1093SocketError error = SocketError; 1111SocketError error = SocketError; 1132SocketError error = SocketError; 1152SocketError error = SocketError; 1169SocketError error = SocketError; 1186SocketError error = SocketError; 1204SocketError error = SocketError; 1228SocketError error = SocketError; 1245SocketError error = SocketError; 1275SocketError error = SocketError; 1295SocketError error = SocketError; 1313SocketError error = SocketError; 1335SocketError error = SocketError; 1357SocketError error = SocketError;
System\Net\Sockets\SocketAsyncEventArgs.cs (4)
227SocketsTelemetry.Log.AfterAccept(SocketError); 231SocketsTelemetry.Log.AfterConnect(SocketError, ConnectActivity); 784if (internalArgs.SocketError == SocketError.Success) 795lastError = internalArgs.SocketError;
System.ServiceModel.UnixDomainSocket (7)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (7)
41var error = SocketError; 58var error = SocketError; 83if (SocketError != SocketError.Success) 85throw CreateException(SocketError); 95if (SocketError != SocketError.Success) 97throw CreateException(SocketError); 109SocketError == SocketError.Success ? ValueTaskSourceStatus.Succeeded :