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