21 references to SocketError
System (15)
net\System\Net\Sockets\_MultipleConnectAsync.cs (4)
160if (args.SocketError == SocketError.Success) 166else if (args.SocketError == SocketError.OperationAborted) 178SocketError currentFailure = args.SocketError; 236return new SocketException(internalArgs.SocketError);
net\System\Net\WebSockets\WebSocketConnectionStream.cs (11)
662if (m_WriteEventArgs.SocketError != SocketError.Success) 664throw new SocketException(m_WriteEventArgs.SocketError); 714if (m_WriteEventArgs.SocketError != SocketError.Success) 716throw new SocketException(m_WriteEventArgs.SocketError); 784if (m_ReadEventArgs.SocketError != SocketError.Success) 788throw new SocketException(m_ReadEventArgs.SocketError); 886eventArgs.SocketError); 906if (eventArgs.SocketError != SocketError.Success) 908thisPtr.m_WriteTaskCompletionSource.TrySetException(new SocketException(eventArgs.SocketError)); 937if (eventArgs.SocketError != SocketError.Success) 941thisPtr.m_ReadTaskCompletionSource.TrySetException(new SocketException(eventArgs.SocketError));
System.ServiceModel (6)
System\ServiceModel\Channels\SocketConnection.cs (6)
968if (this.asyncWriteEventArgs.SocketError == SocketError.Success) 973throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException((int)this.asyncWriteEventArgs.SocketError)); 1332if (this.asyncReadEventArgs.SocketError == SocketError.Success) 1337throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException((int)this.asyncReadEventArgs.SocketError)); 2367if (this.socketAsyncEventArgs.SocketError == SocketError.Success) 2374completionException = new SocketException((int)this.socketAsyncEventArgs.SocketError);