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