14 references to SafeHandle
System (14)
net\System\Net\_PooledStream.cs (3)
598
if (UnsafeNclNativeMethods.CancelIoEx(socket.
SafeHandle
, IntPtr.Zero) == 0) {
623
UnsafeNclNativeMethods.CancelIoEx(socket4.
SafeHandle
, IntPtr.Zero);
640
UnsafeNclNativeMethods.CancelIoEx(socket6.
SafeHandle
, IntPtr.Zero);
net\System\Net\ServicePoint.cs (1)
1463
SafeCloseSocket safeHandle = attemptSocket.
SafeHandle
;
net\System\Net\Sockets\_AcceptOverlappedAsyncResult.cs (3)
80
IntPtr handle = m_ListenSocket.
SafeHandle
.DangerousGetHandle();
83
m_AcceptSocket.
SafeHandle
,
90
GlobalLog.Print("AcceptOverlappedAsyncResult#" + ValidationHelper.HashString(this) + "::PostCallback() setsockopt handle:" + handle.ToString() + " AcceptSocket:" + ValidationHelper.HashString(m_AcceptSocket) + " itsHandle:" + m_AcceptSocket.
SafeHandle
.DangerousGetHandle().ToString() + " returns:" + errorCode.ToString());
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (2)
165
m_UnmanagedBlob = SafeOverlappedFree.Alloc(s.
SafeHandle
);
362
socket.
SafeHandle
,
net\System\Net\Sockets\_ConnectOverlappedAsyncResult.cs (1)
42
socket.
SafeHandle
,
net\System\Net\Sockets\Socket.cs (4)
9828
IntPtr handle = m_CurrentSocket.
SafeHandle
.DangerousGetHandle();
9831
m_AcceptSocket.
SafeHandle
,
9867
m_CurrentSocket.
SafeHandle
,
10055
m_CurrentSocket.
SafeHandle
,