Base:
14 references to IsInvalid
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
539
bool useFd = socket is not null && !socket.
IsInvalid
;
System.Net.Sockets (13)
System\Net\Sockets\SafeSocketHandle.cs (2)
99
bool shouldClose = !
IsInvalid
&& TryOwnClose();
177
if (
IsInvalid
)
System\Net\Sockets\Socket.cs (10)
89
Debug.Assert(_handle.
IsInvalid
);
95
Debug.Assert(!_handle.
IsInvalid
);
242
if (handle.
IsInvalid
)
1079
Debug.Assert(acceptedSocketHandle.
IsInvalid
);
1090
Debug.Assert(!acceptedSocketHandle.
IsInvalid
);
3564
if (Disposed || _handle.
IsInvalid
)
3621
if (silent && (Disposed || _handle.
IsInvalid
))
3634
if (silent && _handle.
IsInvalid
)
3800
Debug.Assert(fd != null && !fd.
IsInvalid
);
3948
if (disconnectOnFailure && _isConnected && (_handle.
IsInvalid
|| (errorCode != SocketError.WouldBlock &&
System\Net\Sockets\SocketPal.Unix.cs (1)
97
if (socket.
IsInvalid
)