70 references to SocketException
System (70)
net\System\Net\DNS.cs (4)
375
"InternalGetHostByAddress", new
SocketException
(errorCode));
386
exception = new
SocketException
(errorCode);
398
throw new
SocketException
(SocketError.ProtocolNotSupported);
1078
throw new
SocketException
(errorCode);
net\System\Net\IPAddress.cs (5)
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);
net\System\Net\SocketAddress.cs (1)
205
throw new
SocketException
(SocketError.AddressFamilyNotSupported);
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 (41)
527
SocketException socketException = new
SocketException
(errorCode);
943
SocketException socketException = new
SocketException
(SocketError.InvalidArgument);
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));
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);
2937
SocketException socketException = new
SocketException
(errorCode);
3255
SocketException socketException = new
SocketException
(errorCode);
3296
SocketException socketException = new
SocketException
(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));
4063
SocketException socketException = new
SocketException
(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);
4883
SocketException socketException = new
SocketException
(errorCode);
5150
SocketException socketException = new
SocketException
(errorCode);
5184
asyncResult.InvokeCallback(new
SocketException
(SocketError.OperationAborted));
5439
SocketException socketException = new
SocketException
(errorCode);
5656
SocketException socketException = new
SocketException
(errorCode);
5971
throw new
SocketException
(errorCode);
6402
ThreadPool.UnsafeQueueUserWorkItem(new WaitCallback(((LazyAsyncResult)m_AcceptQueueOrConnectResult).InvokeCallback), new
SocketException
(SocketError.OperationAborted));
6963
SocketException socketException = new
SocketException
(errorCode);
7263
SocketException socketException = new
SocketException
(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));