private void DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
{
SocketsTelemetry.Log.ConnectStart(socketAddress);
SocketError errorCode;
try
{
errorCode = SocketPal.Connect(_handle, socketAddress.Buffer.Slice(0, socketAddress.Size));
}
catch (Exception ex)
{
SocketsTelemetry.Log.AfterConnect(SocketError.NotSocket, ex.Message);
throw;
}
// Throw an appropriate SocketException if the native call fails.
if (errorCode != SocketError.Success)
{
UpdateConnectSocketErrorForDisposed(ref errorCode);
// Update the internal state of this socket according to the error before throwing.
SocketException socketException = SocketExceptionFactory.CreateSocketException((int)errorCode, endPointSnapshot);
UpdateStatusAfterSocketError(socketException);
if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException);
SocketsTelemetry.Log.AfterConnect(errorCode);
throw socketException;
}
SocketsTelemetry.Log.AfterConnect(SocketError.Success);
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"connection to:{endPointSnapshot}");
// Update state and performance counters.
_pendingConnectRightEndPoint = endPointSnapshot;
_nonBlockingConnectInProgress = false;
SetToConnected();
if (NetEventSource.Log.IsEnabled()) NetEventSource.Connected(this, LocalEndPoint, RemoteEndPoint);
}
В моем проекте веб-API asp.net, когда я запускал API входа в то время, ошибка выдачи файла Socket.cs: «Операция неблокирующего сокета не может быть завершена немедленно». в приведенном выше блоке кода. Что мне делать?
// Throw an appropriate SocketException if the native call fails. if (errorCode != SocketError.Success) { UpdateConnectSocketErrorForDisposed(ref errorCode); // Update the internal state of this socket according to the error before throwing. SocketException socketException = SocketExceptionFactory.CreateSocketException((int)errorCode, endPointSnapshot); UpdateStatusAfterSocketError(socketException); if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException);
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"connection to:{endPointSnapshot}");
// Update state and performance counters. _pendingConnectRightEndPoint = endPointSnapshot; _nonBlockingConnectInProgress = false; SetToConnected(); if (NetEventSource.Log.IsEnabled()) NetEventSource.Connected(this, LocalEndPoint, RemoteEndPoint); }
[/code] В моем проекте веб-API asp.net, когда я запускал API входа в то время, ошибка выдачи файла Socket.cs: «Операция неблокирующего сокета не может быть завершена немедленно». в приведенном выше блоке кода. Что мне делать?
Моя цель — использовать jarsigner для подписи apk.
Я получаю следующее приглашение:
% jarsigner
The operation couldn’t be completed. Unable to locate a Java Runtime that supports jarsigner.
Please visit for information on installing Java....
Когда я запускаю ./gradlew из папки проекта, я получаю:
./gradlew
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit for information on installing Java.