System.Net.Sockets.Socket.UpdateStatusAfterSocketError C# (CSharp) Méthode

UpdateStatusAfterSocketError() private méthode

private UpdateStatusAfterSocketError ( SocketException socketException ) : void
socketException SocketException
Résultat void
        internal void UpdateStatusAfterSocketError(SocketException socketException)
        {
            UpdateStatusAfterSocketError(socketException.SocketErrorCode);
        }

Same methods

Socket::UpdateStatusAfterSocketError ( SocketError errorCode ) : void

Usage Example

Exemple #1
0
        internal void FinishOperationSyncFailure(SocketError socketError, int bytesTransferred, SocketFlags flags)
        {
            SetResults(socketError, bytesTransferred, flags);

            // This will be null if we're doing a static ConnectAsync to a DnsEndPoint with AddressFamily.Unspecified;
            // the attempt socket will be closed anyways, so not updating the state is OK.
            _currentSocket?.UpdateStatusAfterSocketError(socketError);

            Complete();
        }
All Usage Examples Of System.Net.Sockets.Socket::UpdateStatusAfterSocketError