198 references to Success
ClientSample (1)
Tcp\SocketAwaitable.cs (1)
40
if (_error != SocketError.
Success
)
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
481
if (_asyncWriteEventArgs.SocketError == SocketError.
Success
)
720
if (_asyncReadEventArgs.SocketError == SocketError.
Success
)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (6)
Internal\SocketAwaitableEventArgs.cs (2)
51
if (SocketError != SocketError.
Success
)
67
SocketError == SocketError.
Success
? ValueTaskSourceStatus.Succeeded :
Internal\SocketReceiver.cs (2)
27
return error == SocketError.
Success
44
return error == SocketError.
Success
Internal\SocketSender.cs (2)
37
return error == SocketError.
Success
71
return error == SocketError.
Success
Sockets.BindTests (2)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (2)
1231
return mre.Wait(5000) && socketArgs.SocketError == SocketError.
Success
;
1236
return socketArgs.SocketError == SocketError.
Success
;
System.Net.HttpListener (1)
System\Net\Managed\HttpEndPointListener.cs (1)
110
Socket? accepted = args.SocketError == SocketError.
Success
? args.AcceptSocket : null;
System.Net.NameResolution (6)
System\Net\Dns.cs (3)
401
if (errorCode != SocketError.
Success
)
451
if (errorCode != SocketError.
Success
)
474
if (errorCode != SocketError.
Success
)
System\Net\NameResolutionPal.Unix.cs (3)
32
return SocketError.
Success
;
151
return SocketError.
Success
;
189
return socketError == SocketError.
Success
? Marshal.PtrToStringUTF8((IntPtr)buffer) : null;
System.Net.Ping (3)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
76
{ Interop.Error.SUCCESS, SocketError.
Success
},
123
{ SocketError.
Success
, Interop.Error.SUCCESS },
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
314
if (result == SocketError.
Success
&& header.SocketAddressLen > 0)
System.Net.Primitives (2)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
76
{ Interop.Error.SUCCESS, SocketError.
Success
},
123
{ SocketError.
Success
, Interop.Error.SUCCESS },
System.Net.Sockets (170)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
76
{ Interop.Error.SUCCESS, SocketError.
Success
},
123
{ SocketError.
Success
, Interop.Error.SUCCESS },
System\Net\Sockets\SafeSocketHandle.cs (1)
152
ret = !OwnsHandle || DoCloseHandle(abortive) == SocketError.
Success
;
System\Net\Sockets\SafeSocketHandle.Unix.cs (1)
33
case SocketError.
Success
:
System\Net\Sockets\Socket.cs (64)
87
if (errorCode != SocketError.
Success
)
145
if (SocketPal.GetSockName(handle, bufferPtr, &bufferLength) != SocketError.
Success
)
188
case SocketError.
Success
:
284
if (errorCode != SocketError.
Success
)
318
if (errorCode != SocketError.
Success
)
364
if (errorCode != SocketError.
Success
)
422
if (errorCode != SocketError.
Success
)
817
if (errorCode != SocketError.
Success
)
1021
if (errorCode != SocketError.
Success
)
1077
if (errorCode != SocketError.
Success
)
1088
SocketsTelemetry.Log.AfterAccept(SocketError.
Success
);
1132
if (errorCode != SocketError.
Success
)
1157
if (errorCode != SocketError.
Success
)
1183
if (errorCode != SocketError.
Success
)
1205
if (errorCode != SocketError.
Success
)
1236
return errorCode == SocketError.
Success
?
1251
if (errorCode != SocketError.
Success
)
1361
if (errorCode != SocketError.
Success
)
1443
if (errorCode != SocketError.
Success
)
1484
if (errorCode != SocketError.
Success
)
1528
if (errorCode != SocketError.
Success
)
1549
if (errorCode != SocketError.
Success
)
1574
return errorCode == SocketError.
Success
?
1591
if (errorCode != SocketError.
Success
)
1619
if (errorCode != SocketError.
Success
)
1647
if (errorCode != SocketError.
Success
)
1690
if (errorCode != SocketError.
Success
&& errorCode != SocketError.MessageSize)
1697
if (errorCode == SocketError.
Success
&& SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramReceived();
1777
if (errorCode != SocketError.
Success
&& errorCode != SocketError.MessageSize)
1784
if (errorCode == SocketError.
Success
&& SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramReceived();
1833
if (errorCode != SocketError.
Success
)
1957
if (errorCode != SocketError.
Success
)
2033
if (errorCode != SocketError.
Success
)
2066
if (errorCode != SocketError.
Success
)
2100
if (errorCode != SocketError.
Success
)
2177
if (errorCode != SocketError.
Success
)
2213
if (errorCode != SocketError.
Success
)
2238
if (errorCode != SocketError.
Success
)
2262
if (errorCode != SocketError.
Success
)
2298
if (errorCode != SocketError.
Success
)
2354
if (errorCode != SocketError.
Success
)
2417
if (errorCode != SocketError.
Success
)
2478
if (errorCode != SocketError.
Success
)
2514
errorCode = SocketError.
Success
;
2540
errorCode = SocketError.
Success
;
2611
errorCode = SocketError.
Success
;
2636
errorCode = SocketError.
Success
;
2655
errorCode = SocketError.
Success
;
2820
if (errorCode != SocketError.
Success
&& errorCode != SocketError.NotSocket)
3366
if (errorCode != SocketError.
Success
)
3379
SocketsTelemetry.Log.AfterConnect(SocketError.
Success
, activity);
3465
if (errorCode != SocketError.
Success
)
3487
if (errorCode != SocketError.
Success
|| dataAvailable != 0)
3626
errorCode == SocketError.
Success
)
3637
if (errorCode != SocketError.
Success
)
3650
if (errorCode != SocketError.
Success
)
3664
if (errorCode != SocketError.
Success
)
3679
if (errorCode != SocketError.
Success
)
3695
if (errorCode != SocketError.
Success
)
3711
if (errorCode != SocketError.
Success
)
3728
if (errorCode != SocketError.
Success
)
3743
return SocketError.
Success
;
3762
if (errorCode == SocketError.
Success
)
3943
if (errorCode == SocketError.
Success
|| errorCode == SocketError.IOPending)
System\Net\Sockets\Socket.Tasks.cs (18)
874
if (saea.SocketError == SocketError.
Success
)
912
if (error == SocketError.
Success
)
1058
return error == SocketError.
Success
?
1078
return error == SocketError.
Success
?
1097
return error == SocketError.
Success
?
1115
return error == SocketError.
Success
?
1136
return error == SocketError.
Success
?
1156
return error == SocketError.
Success
?
1173
return error == SocketError.
Success
?
1190
return error == SocketError.
Success
?
1208
return error == SocketError.
Success
?
1232
return error == SocketError.
Success
?
1249
return error == SocketError.
Success
?
1281
if (error != SocketError.
Success
)
1300
if (error != SocketError.
Success
)
1321
if (error != SocketError.
Success
)
1342
if (error != SocketError.
Success
)
1366
if (error != SocketError.
Success
)
System\Net\Sockets\Socket.Unix.cs (5)
123
if (errorCode != SocketError.
Success
)
159
if (errorCode != SocketError.
Success
)
184
return SocketError.
Success
;
227
SocketError errorCode = SocketError.
Success
;
248
if (errorCode != SocketError.
Success
)
System\Net\Sockets\SocketAsyncContext.Unix.cs (15)
464
ErrorCode = SocketError.
Success
;
479
if (completed && ErrorCode == SocketError.
Success
)
514
if (completed && ErrorCode == SocketError.
Success
)
548
if (completed && ErrorCode == SocketError.
Success
)
575
if (completed && ErrorCode == SocketError.
Success
)
605
if (completed && ErrorCode == SocketError.
Success
)
627
Debug.Assert(ErrorCode == SocketError.
Success
|| AcceptedFileDescriptor == (IntPtr)(-1), $"Unexpected values: ErrorCode={ErrorCode}, AcceptedFileDescriptor={AcceptedFileDescriptor}");
628
if (ErrorCode == SocketError.
Success
)
660
if (result && ErrorCode == SocketError.
Success
&& Buffer.Length > 0)
663
if (error != SocketError.
Success
&& error != SocketError.IOPending)
1431
errorCode = SocketError.
Success
; // Will be ignored
1453
Debug.Assert(errorCode == SocketError.
Success
|| acceptedFd == (IntPtr)(-1), $"Unexpected values: errorCode={errorCode}, acceptedFd={acceptedFd}");
1481
Debug.Assert(errorCode == SocketError.
Success
|| acceptedFd == (IntPtr)(-1), $"Unexpected values: errorCode={errorCode}, acceptedFd={acceptedFd}");
1557
if (errorCode == SocketError.
Success
&& remains > 0)
1574
if (operation.ErrorCode == SocketError.
Success
)
System\Net\Sockets\SocketAsyncEventArgs.cs (7)
447
_socketError = SocketError.
Success
;
784
if (internalArgs.SocketError == SocketError.
Success
)
841
SetResults(SocketError.
Success
, internalArgs.BytesTransferred, internalArgs.SocketFlags);
888
SetResults(SocketError.
Success
, bytesTransferred, flags);
904
if (socketError == SocketError.
Success
)
927
if (socketError == SocketError.
Success
)
1036
if (socketError == SocketError.
Success
)
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (5)
36
if (socketError == SocketError.
Success
)
290
if (error == SocketError.
Success
)
367
return SocketError.
Success
;
373
return SocketError.
Success
;
387
if (socketError == SocketError.
Success
)
System\Net\Sockets\SocketPal.Unix.cs (49)
70
errorCode = SocketError.
Success
;
652
errorCode = SocketError.
Success
;
665
errorCode = SocketError.
Success
;
699
errorCode = SocketError.
Success
;
709
errorCode = SocketError.
Success
;
754
errorCode = SocketError.
Success
;
759
errorCode = SocketError.
Success
;
808
errorCode = SocketError.
Success
;
820
errorCode = SocketError.
Success
;
876
errorCode = SocketError.
Success
;
889
errorCode = SocketError.
Success
;
922
errorCode = SocketError.
Success
;
934
errorCode = SocketError.
Success
;
1007
errorCode = successfulSend ? SocketError.
Success
: SocketError.WouldBlock;
1019
errorCode = SocketError.
Success
;
1062
errorCode = SocketError.
Success
;
1068
errorCode = SocketError.
Success
;
1080
return SocketError.
Success
;
1086
return err == Interop.Error.SUCCESS ? SocketError.
Success
: GetSocketErrorForErrorCode(err);
1095
return err == Interop.Error.SUCCESS ? SocketError.
Success
: GetSocketErrorForErrorCode(err);
1104
return err == Interop.Error.SUCCESS ? SocketError.
Success
: GetSocketErrorForErrorCode(err);
1117
return err == Interop.Error.SUCCESS ? SocketError.
Success
: GetSocketErrorForErrorCode(err);
1124
return err == Interop.Error.SUCCESS ? SocketError.
Success
: GetSocketErrorForErrorCode(err);
1130
return err == Interop.Error.SUCCESS ? SocketError.
Success
: GetSocketErrorForErrorCode(err);
1408
if (error == SocketError.
Success
)
1426
return SocketError.
Success
;
1525
return SocketError.
Success
;
1607
return SocketError.
Success
;
1612
return SocketError.
Success
;
1621
return getErrorError == Interop.Error.SUCCESS ? SocketError.
Success
: GetSocketErrorForErrorCode(getErrorError);
1640
return err == Interop.Error.SUCCESS ? SocketError.
Success
: GetSocketErrorForErrorCode(err);
1657
if (returnError == SocketError.
Success
)
1678
return SocketError.
Success
;
1696
return SocketError.
Success
;
1725
return SocketError.
Success
;
1745
return SocketError.
Success
;
1759
return SocketError.
Success
;
1789
return SocketError.
Success
;
1980
return SocketError.
Success
;
2055
return SocketError.
Success
;
2064
return SocketError.
Success
;
2074
if (socketError == SocketError.
Success
)
2076
callback(bytesSent, SocketError.
Success
);
2084
SocketError error = SocketError.
Success
;
2121
if (error != SocketError.
Success
)
2132
if (error != SocketError.
Success
)
2164
SocketError.
Success
;
2192
if (errorCode != SocketError.
Success
)
2197
success = (SocketError)optionValue == SocketError.
Success
;
System\Net\Sockets\SocketsTelemetry.cs (3)
152
if (error != SocketError.
Success
)
161
if (error == SocketError.
Success
)
195
if (error == SocketError.
Success
)
System.ServiceModel.UnixDomainSocket (5)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (5)
43
return error == SocketError.
Success
60
return error == SocketError.
Success
83
if (SocketError != SocketError.
Success
)
95
if (SocketError != SocketError.
Success
)
109
SocketError == SocketError.
Success
? ValueTaskSourceStatus.Succeeded :