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)
481
if (_asyncWriteEventArgs.
SocketError
== SocketError.Success)
486
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException((int)_asyncWriteEventArgs.
SocketError
));
720
if (_asyncReadEventArgs.
SocketError
== SocketError.Success)
725
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException((int)_asyncReadEventArgs.
SocketError
));
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
191
throw 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)
51
if (
SocketError
!= SocketError.Success)
53
return new SocketOperationResult(CreateException(
SocketError
));
67
SocketError
== SocketError.Success ? ValueTaskSourceStatus.Succeeded :
Internal\SocketReceiver.cs (2)
25
var error =
SocketError
;
42
var error =
SocketError
;
Internal\SocketSender.cs (2)
35
var error =
SocketError
;
69
var error =
SocketError
;
Sockets.BindTests (3)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
80
throw new SocketException((int)socketArgs.
SocketError
);
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (2)
1231
return mre.Wait(5000) && socketArgs.
SocketError
== SocketError.Success;
1236
return socketArgs.
SocketError
== SocketError.Success;
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
80
throw new SocketException((int)socketArgs.
SocketError
);
System.Net.HttpListener (1)
System\Net\Managed\HttpEndPointListener.cs (1)
110
Socket? accepted = args.
SocketError
== SocketError.Success ? args.AcceptSocket : null;
System.Net.Sockets (23)
System\Net\Sockets\Socket.Tasks.cs (19)
874
if (saea.
SocketError
== SocketError.Success)
883
t = Task.FromException<int>(GetException(saea.
SocketError
, wrapExceptionsInIOExceptions: fromNetworkStream));
897
SocketError error = saea.
SocketError
;
1052
SocketError error =
SocketError
;
1074
SocketError error =
SocketError
;
1093
SocketError error =
SocketError
;
1111
SocketError error =
SocketError
;
1132
SocketError error =
SocketError
;
1152
SocketError error =
SocketError
;
1169
SocketError error =
SocketError
;
1186
SocketError error =
SocketError
;
1204
SocketError error =
SocketError
;
1228
SocketError error =
SocketError
;
1245
SocketError error =
SocketError
;
1275
SocketError error =
SocketError
;
1295
SocketError error =
SocketError
;
1313
SocketError error =
SocketError
;
1335
SocketError error =
SocketError
;
1357
SocketError error =
SocketError
;
System\Net\Sockets\SocketAsyncEventArgs.cs (4)
227
SocketsTelemetry.Log.AfterAccept(
SocketError
);
231
SocketsTelemetry.Log.AfterConnect(
SocketError
, ConnectActivity);
784
if (internalArgs.
SocketError
== SocketError.Success)
795
lastError = internalArgs.
SocketError
;
System.ServiceModel.UnixDomainSocket (7)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (7)
41
var error =
SocketError
;
58
var error =
SocketError
;
83
if (
SocketError
!= SocketError.Success)
85
throw CreateException(
SocketError
);
95
if (
SocketError
!= SocketError.Success)
97
throw CreateException(
SocketError
);
109
SocketError
== SocketError.Success ? ValueTaskSourceStatus.Succeeded :