1 type derived from SocketException
System.ServiceModel (1)
System\ServiceModel\Channels\PnrpPeerResolver.cs (1)
842internal class PnrpException : SocketException
130 instantiations of SocketException
System (114)
net\System\Net\_SafeNetHandles.cs (1)
2762throw new SocketException();
net\System\Net\DNS.cs (7)
253SocketException socketException = new SocketException(); 375"InternalGetHostByAddress", new SocketException(errorCode)); 386exception = new SocketException(errorCode); 398throw new SocketException(SocketError.ProtocolNotSupported); 422exception = new SocketException(); 470throw new SocketException(); 1078throw new SocketException(errorCode);
net\System\Net\IPAddress.cs (7)
221e = new SocketException(); 261e = new SocketException(SocketError.InvalidArgument); 326throw new SocketException(SocketError.OperationNotSupported); 336throw new SocketException(SocketError.OperationNotSupported); 390throw new SocketException(SocketError.OperationNotSupported); 400throw new SocketException(SocketError.OperationNotSupported); 457throw new SocketException();
net\System\Net\SocketAddress.cs (1)
205throw new SocketException(SocketError.AddressFamilyNotSupported);
net\System\Net\Sockets\_DynamicWinsockMethods.cs (1)
133throw new SocketException();
net\System\Net\Sockets\_MultipleConnectAsync.cs (8)
53SyncFail(new SocketException(SocketError.OperationAborted)); 154exception = new SocketException(SocketError.OperationAborted); 170exception = new SocketException(SocketError.OperationAborted); 193exception = new SocketException(currentFailure); 227return new SocketException(SocketError.NoData); 236return new SocketException(internalArgs.SocketError); 243return new SocketException(SocketError.OperationAborted); 362AsyncFail(new SocketException(SocketError.OperationAborted));
net\System\Net\Sockets\Socket.cs (78)
154throw new SocketException(); 193SocketException e = new SocketException(); 368SocketException socketException = new SocketException(); 417SocketException socketException = new SocketException(); 464SocketException socketException = new SocketException(); 527SocketException socketException = new SocketException(errorCode); 943SocketException socketException = new SocketException(SocketError.InvalidArgument); 971SocketException socketException = new SocketException(); 1194SocketException socketException = new SocketException(); 1250SocketException socketException = new SocketException(); 1300throw new SocketException(errorCode); 1377Logging.Exception(Logging.Sockets, this, "Send", new SocketException(errorCode)); 1483SocketException socketException = new SocketException(errorCode); 1511throw new SocketException(errorCode); 1568Logging.Exception(Logging.Sockets, this, "Send", new SocketException(errorCode)); 1662SocketException socketException = new SocketException(); 1742throw new SocketException(errorCode); 1791Logging.Exception(Logging.Sockets, this, "Receive", new SocketException(errorCode)); 1836throw new SocketException(errorCode); 1912Logging.Exception(Logging.Sockets, this, "Receive", new SocketException(errorCode)); 2026SocketException socketException = new SocketException(errorCode); 2113socketException = new SocketException(); 2217SocketException socketException = new SocketException(); 2270SocketException socketException = new SocketException(); 2339SocketException socketException = new SocketException(); 2448SocketException socketException = new SocketException(); 2486SocketException socketException = new SocketException(); 2522SocketException socketException = new SocketException(); 2584SocketException socketException = new SocketException(); 2659throw new SocketException(); 2818SocketException socketException = new SocketException(); 2937SocketException socketException = new SocketException(errorCode); 3255SocketException socketException = new SocketException(errorCode); 3296SocketException socketException = new SocketException(errorCode); 3387SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 3430throw new SocketException(errorCode); 3495throw new SocketException(errorCode); 3550if(s_LoggingEnabled)Logging.Exception(Logging.Sockets, this, "BeginSend", new SocketException(errorCode)); 3669SocketException socketException = new SocketException(errorCode); 3693throw new SocketException(errorCode); 3784if(s_LoggingEnabled)Logging.Exception(Logging.Sockets, this, "BeginSend", new SocketException(errorCode)); 3815throw new SocketException(errorCode); 3868Logging.Exception(Logging.Sockets, this, "EndSend", new SocketException(errorCode)); 3925SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 4063SocketException socketException = new SocketException(errorCode); 4136SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 4184throw new SocketException(errorCode); 4299if(s_LoggingEnabled)Logging.Exception(Logging.Sockets, this, "BeginReceive", new SocketException(errorCode)); 4300asyncResult.InvokeCallback(new SocketException(errorCode)); 4321throw new SocketException(errorCode); 4415if(s_LoggingEnabled)Logging.Exception(Logging.Sockets, this, "BeginReceive", new SocketException(errorCode)); 4460throw new SocketException(errorCode); 4520Logging.Exception(Logging.Sockets, this, "EndReceive", new SocketException(errorCode)); 4634SocketException socketException = new SocketException(errorCode); 4719SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 4883SocketException socketException = new SocketException(errorCode); 4979SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 5150SocketException socketException = new SocketException(errorCode); 5184asyncResult.InvokeCallback(new SocketException(SocketError.OperationAborted)); 5439SocketException socketException = new SocketException(errorCode); 5521SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 5599SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 5656SocketException socketException = new SocketException(errorCode); 5971throw new SocketException(errorCode); 6160SocketException socketException = new SocketException(castedAsyncResult.ErrorCode, remoteEndPoint); 6208SocketException socketException = new SocketException(endPointSnapshot); 6402ThreadPool.UnsafeQueueUserWorkItem(new WaitCallback(((LazyAsyncResult)m_AcceptQueueOrConnectResult).InvokeCallback), new SocketException(SocketError.OperationAborted)); 6512SocketException socketException = new SocketException(); 6566SocketException socketException = new SocketException(); 6604SocketException socketException = new SocketException(); 6635SocketException socketException = new SocketException(); 6663SocketException socketException = new SocketException(); 6694SocketException socketException = new SocketException(); 6747SocketException socketException = new SocketException(); 6963SocketException socketException = new SocketException(errorCode); 7025SocketException socketException = new SocketException(); 7263SocketException socketException = new SocketException(errorCode); 7310SocketException socketException = new SocketException(castedAsyncResult.ErrorCode);
net\System\Net\Sockets\TCPClient.cs (2)
204throw new SocketException(SocketError.IsConnected); 305throw new SocketException(SocketError.NotConnected);
net\System\Net\Sockets\UDPClient.cs (4)
422throw new SocketException(SocketError.NotConnected); 842throw new SocketException(SocketError.OperationNotSupported); 881throw new SocketException(SocketError.OperationNotSupported); 993throw new SocketException(SocketError.OperationNotSupported);
net\System\Net\WebSockets\WebSocketConnectionStream.cs (5)
664throw new SocketException(m_WriteEventArgs.SocketError); 716throw new SocketException(m_WriteEventArgs.SocketError); 788throw new SocketException(m_ReadEventArgs.SocketError); 908thisPtr.m_WriteTaskCompletionSource.TrySetException(new SocketException(eventArgs.SocketError)); 941thisPtr.m_ReadTaskCompletionSource.TrySetException(new SocketException(eventArgs.SocketError));
System.Net (9)
net\UdpAnySourceMulticastClient.cs (5)
19public IAsyncResult BeginJoinGroup(AsyncCallback callback, object state) { throw new SocketException((int)(SocketError.AccessDenied)); } 24public IAsyncResult BeginReceiveFromGroup(byte[] buffer, int offset, int count, AsyncCallback callback, object state) { throw new SocketException((int)(SocketError.AccessDenied)); } 29public IAsyncResult BeginSendTo(byte[] buffer, int offset, int count, IPEndPoint remoteEndPoint, AsyncCallback callback, object state) { throw new SocketException((int)(SocketError.AccessDenied)); } 34public IAsyncResult BeginSendToGroup(byte[] buffer, int offset, int count, AsyncCallback callback, object state) { throw new SocketException((int)(SocketError.AccessDenied)); } 54public int EndReceiveFromGroup(IAsyncResult result, out IPEndPoint source) { throw new SocketException((int)(SocketError.AccessDenied)); }
net\UdpSingleSourceMulticastClient.cs (4)
19public IAsyncResult BeginJoinGroup(AsyncCallback callback, object state) { throw new SocketException((int)(SocketError.AccessDenied)); } 24public IAsyncResult BeginReceiveFromSource(byte[] buffer, int offset, int count, AsyncCallback callback, object state) { throw new SocketException((int)(SocketError.AccessDenied)); } 29public IAsyncResult BeginSendToSource(byte[] buffer, int offset, int count, int remotePort, AsyncCallback callback, object state) { throw new SocketException((int)(SocketError.AccessDenied)); } 44public int EndReceiveFromSource(IAsyncResult result, out int sourcePort) { throw new SocketException((int)(SocketError.AccessDenied)); }
System.ServiceModel (7)
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (1)
100throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException(error));
System\ServiceModel\Channels\PnrpPeerResolver.cs (3)
1606throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException(ret)); 1794SocketException exception = new SocketException(WSAGetLastError()); 1830throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException(error));
System\ServiceModel\Channels\SocketConnection.cs (3)
973throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException((int)this.asyncWriteEventArgs.SocketError)); 1337throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SocketException((int)this.asyncReadEventArgs.SocketError)); 2374completionException = new SocketException((int)this.socketAsyncEventArgs.SocketError);
148 references to SocketException
System (84)
net\System\Net\_Connection.cs (3)
933catch (SocketException ex) { 3371SocketException socketException = exception.InnerException as SocketException;
net\System\Net\_ConnectStream.cs (1)
2353catch (SocketException ex)
net\System\Net\_ServiceNameStore.cs (2)
191catch (System.Net.Sockets.SocketException) 209catch (System.Net.Sockets.SocketException)
net\System\Net\DNS.cs (3)
253SocketException socketException = new SocketException(); 521catch (SocketException ex) 1039catch (SocketException ex)
net\System\Net\FtpWebRequest.cs (3)
1130SocketException sEx = ioEx.InnerException as SocketException; 1190if (!(exception is SocketException || exception is ObjectDisposedException) || !timer.HasExpired) {
net\System\Net\IPAddress.cs (1)
185SocketException e = null;
net\System\Net\ServicePoint.cs (3)
1242catch (SocketException socketException) { 1257catch (SocketException socketException) { 1337catch (SocketException) {
net\System\Net\SocketException.cs (3)
26/// Creates a new instance of the <see cref='System.Net.Sockets.SocketException'/> class with the default error code. 39/// Creates a new instance of the <see cref='System.Net.Sockets.SocketException'/> class with the specified error code. 52/// Creates a new instance of the <see cref='System.Net.Sockets.SocketException'/> class with the specified error code as SocketError.
net\System\Net\Sockets\_MultipleConnectAsync.cs (4)
188SocketException socketException = connectException as SocketException; 286SocketException socketException = e as SocketException;
net\System\Net\Sockets\Socket.cs (54)
193SocketException e = new SocketException(); 368SocketException socketException = new SocketException(); 417SocketException socketException = new SocketException(); 464SocketException socketException = new SocketException(); 527SocketException socketException = new SocketException(errorCode); 943SocketException socketException = new SocketException(SocketError.InvalidArgument); 971SocketException socketException = new SocketException(); 1194SocketException socketException = new SocketException(); 1250SocketException socketException = new SocketException(); 1483SocketException socketException = new SocketException(errorCode); 1662SocketException socketException = new SocketException(); 2026SocketException socketException = new SocketException(errorCode); 2110SocketException socketException = null; 2217SocketException socketException = new SocketException(); 2270SocketException socketException = new SocketException(); 2339SocketException socketException = new SocketException(); 2448SocketException socketException = new SocketException(); 2486SocketException socketException = new SocketException(); 2522SocketException socketException = new SocketException(); 2584SocketException socketException = new SocketException(); 2818SocketException socketException = new SocketException(); 2937SocketException socketException = new SocketException(errorCode); 3255SocketException socketException = new SocketException(errorCode); 3296SocketException socketException = new SocketException(errorCode); 3387SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 3669SocketException socketException = new SocketException(errorCode); 3925SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 4063SocketException socketException = new SocketException(errorCode); 4136SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 4634SocketException socketException = new SocketException(errorCode); 4719SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 4883SocketException socketException = new SocketException(errorCode); 4979SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 5150SocketException socketException = new SocketException(errorCode); 5439SocketException socketException = new SocketException(errorCode); 5521SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 5599SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 5656SocketException socketException = new SocketException(errorCode); 6160SocketException socketException = new SocketException(castedAsyncResult.ErrorCode, remoteEndPoint); 6208SocketException socketException = new SocketException(endPointSnapshot); 6512SocketException socketException = new SocketException(); 6566SocketException socketException = new SocketException(); 6604SocketException socketException = new SocketException(); 6635SocketException socketException = new SocketException(); 6663SocketException socketException = new SocketException(); 6694SocketException socketException = new SocketException(); 6747SocketException socketException = new SocketException(); 6963SocketException socketException = new SocketException(errorCode); 7025SocketException socketException = new SocketException(); 7263SocketException socketException = new SocketException(errorCode); 7310SocketException socketException = new SocketException(castedAsyncResult.ErrorCode); 7425internal void UpdateStatusAfterSocketError(SocketException socketException){ 8929SocketException socketException = exception as SocketException;
net\System\Net\Sockets\TCPListener.cs (1)
190catch (SocketException) {
net\System\Net\WebSockets\WebSocketBase.cs (5)
1289error is SocketException || 1328SocketException socketException = exception as SocketException; 1343socketException = exception.InnerException as SocketException; 1427catch (SocketException)
net\System\Net\WebSockets\WebSocketConnectionStream.cs (1)
363return error is SocketException ||
System.Net (1)
AssemblyInfo.cs (1)
58[assembly: TypeForwardedToAttribute(typeof(System.Net.Sockets.SocketException))]
System.Runtime.Remoting (6)
channels\core\exclusivetcplistener.cs (1)
49catch (SocketException)
channels\http\httpserverchannel.cs (1)
497if (!(e is SocketException))
channels\http\httpstreams.cs (1)
559if ((_responseStream == null) && !(e is SocketException))
channels\tcp\tcpclientchannel.cs (2)
481catch (SocketException) 499catch(SocketException)
channels\tcp\tcpserverchannel.cs (1)
479if (!(e is SocketException))
System.ServiceModel (45)
System\ServiceModel\Channels\DnsCache.cs (3)
48catch (SocketException exception) 92SocketException dnsException = null; 97catch (SocketException e)
System\ServiceModel\Channels\HttpChannelHelpers.cs (6)
3627if (ioException.InnerException is SocketException) 3629return SocketConnection.ConvertTransferException((SocketException)ioException.InnerException, receiveTimeout, ioException); 3673if (ioException.InnerException is SocketException) 3675return SocketConnection.ConvertTransferException((SocketException)ioException.InnerException, TimeSpan.FromMilliseconds(request.Timeout), exception); 3706if (webException.InnerException is SocketException) 3708return SocketConnectionInitiator.ConvertConnectException((SocketException)webException.InnerException, request.RequestUri, TimeSpan.MaxValue, webException);
System\ServiceModel\Channels\PnrpPeerResolver.cs (5)
304catch (SocketException) 310catch (SocketException e) 698catch (SocketException e) 1794SocketException exception = new SocketException(WSAGetLastError()); 1917catch (SocketException e)
System\ServiceModel\Channels\SocketAsyncEventArgsPool.cs (1)
60catch (SocketException ex)
System\ServiceModel\Channels\SocketConnection.cs (29)
153catch (SocketException socketException) 567catch (SocketException socketException) 681Exception ConvertSendException(SocketException socketException, TimeSpan remainingTime, TimeSpan timeout) 687Exception ConvertReceiveException(SocketException socketException, TimeSpan remainingTime, TimeSpan timeout) 693internal static Exception ConvertTransferException(SocketException socketException, TimeSpan timeout, Exception originalException) 715static Exception ConvertTransferException(SocketException socketException, TimeSpan timeout, Exception originalException, 822static string GetEndpointString(string sr, TimeSpan timeout, SocketException socketException, SocketConnection socketConnection) 887catch (SocketException socketException) 948catch (SocketException socketException) 1046catch (SocketException socketException) 1110catch (SocketException socketException) 1208catch (SocketException socketException) 1277catch (SocketException socketException) 1313catch (SocketException socketException) 1581public static Exception ConvertConnectException(SocketException socketException, Uri remoteUri, TimeSpan timeSpent, Exception innerException) 1643catch (SocketException socketException) 1659SocketException innerException) 1693SocketException lastException = null; 1726catch (SocketException socketException) 1768public static void TraceConnectFailure(Socket socket, SocketException socketException, Uri remoteUri, 1784SocketException lastException; 1887catch (SocketException socketException) 1908void TraceConnectFailure(SocketException exception) 1929catch (SocketException socketException) 2116catch (SocketException socketException) 2141public static Exception ConvertListenException(SocketException socketException, IPEndPoint localEndpoint) 2269catch (SocketException socketException) 2283static bool ShouldAcceptRecover(SocketException exception) 2318if (completionException != null && ShouldAcceptRecover((SocketException)completionException))
System\ServiceModel\Channels\TcpChannelListener.cs (1)
319catch (SocketException socketException)
System.ServiceModel.Channels (10)
System\ServiceModel\Channels\UdpSocket.cs (7)
192catch (SocketException socketException) 211static Exception ConvertNetworkError(SocketException socketException, ReceiveFromAsyncResult result) 219static Exception ConvertNetworkError(SocketException socketException, int size, TransferDirection direction, int timeToLive) 308catch (SocketException socketException) 331catch (SocketException socketException) 389catch (SocketException socketException) 446catch (SocketException socketException)
System\ServiceModel\Channels\UdpUtility.cs (3)
428catch (SocketException ex) 522SocketException socketException = ex as SocketException;
WsatConfig (1)
Configuration\Utilities.cs (1)
139catch (System.Net.Sockets.SocketException)
WsatUI (1)
Configuration\Utilities.cs (1)
139catch (System.Net.Sockets.SocketException)