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