14 references to SafeHandle
System (14)
net\System\Net\_PooledStream.cs (3)
598if (UnsafeNclNativeMethods.CancelIoEx(socket.SafeHandle, IntPtr.Zero) == 0) { 623UnsafeNclNativeMethods.CancelIoEx(socket4.SafeHandle, IntPtr.Zero); 640UnsafeNclNativeMethods.CancelIoEx(socket6.SafeHandle, IntPtr.Zero);
net\System\Net\ServicePoint.cs (1)
1463SafeCloseSocket safeHandle = attemptSocket.SafeHandle;
net\System\Net\Sockets\_AcceptOverlappedAsyncResult.cs (3)
80IntPtr handle = m_ListenSocket.SafeHandle.DangerousGetHandle(); 83m_AcceptSocket.SafeHandle, 90GlobalLog.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)
165m_UnmanagedBlob = SafeOverlappedFree.Alloc(s.SafeHandle); 362socket.SafeHandle,
net\System\Net\Sockets\_ConnectOverlappedAsyncResult.cs (1)
42socket.SafeHandle,
net\System\Net\Sockets\Socket.cs (4)
9828IntPtr handle = m_CurrentSocket.SafeHandle.DangerousGetHandle(); 9831m_AcceptSocket.SafeHandle, 9867m_CurrentSocket.SafeHandle, 10055m_CurrentSocket.SafeHandle,