23 references to InnerSafeCloseSocket
System (23)
net\System\Net\_SafeNetHandles.cs (18)
2420
private
InnerSafeCloseSocket
m_InnerSocket;
2434
private void SetInnerSocket(
InnerSafeCloseSocket
socket)
2443
private static SafeCloseSocket CreateSocket(
InnerSafeCloseSocket
socket)
2450
protected static void CreateSocket(
InnerSafeCloseSocket
socket, SafeCloseSocket target)
2487
return CreateSocket(
InnerSafeCloseSocket
.CreateWSASocket(pinnedBuffer));
2492
return CreateSocket(
InnerSafeCloseSocket
.CreateWSASocket(addressFamily, socketType, protocolType));
2501
return CreateSocket(
InnerSafeCloseSocket
.Accept(socketHandle, socketAddress, ref socketAddressSize));
2507
InnerSafeCloseSocket
innerSocket = m_InnerSocket == null ? null : Interlocked.Exchange<
InnerSafeCloseSocket
>(ref m_InnerSocket, null);
2526
InnerSafeCloseSocket
innerSocket = m_InnerSocket == null ? null : Interlocked.Exchange<
InnerSafeCloseSocket
>(ref m_InnerSocket, null);
2715
internal unsafe static
InnerSafeCloseSocket
CreateWSASocket(byte* pinnedBuffer)
2718
InnerSafeCloseSocket
result = UnsafeNclNativeMethods.OSSOCK.WSASocket((AddressFamily) (-1),(SocketType) (-1),(ProtocolType) (-1), pinnedBuffer, 0, SocketConstructorFlags.WSA_FLAG_OVERLAPPED);
2725
internal static
InnerSafeCloseSocket
CreateWSASocket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
2727
InnerSafeCloseSocket
result = UnsafeNclNativeMethods.OSSOCK.WSASocket(addressFamily, socketType, protocolType, IntPtr.Zero, 0, SocketConstructorFlags.WSA_FLAG_OVERLAPPED);
2734
internal static
InnerSafeCloseSocket
Accept(SafeCloseSocket socketHandle, byte[] socketAddress, ref int socketAddressSize)
2736
InnerSafeCloseSocket
result = UnsafeNclNativeMethods.SafeNetHandles.accept(socketHandle.DangerousGetHandle(), socketAddress, ref socketAddressSize);
2760
CreateSocket(
InnerSafeCloseSocket
.CreateWSASocket(addressFamily, socketType, protocolType), result);
net\System\Net\Sockets\Socket.cs (2)
5993
SafeCloseSocket.
InnerSafeCloseSocket
socketV4 =
6009
SafeCloseSocket.
InnerSafeCloseSocket
socketV6 =
net\System\Net\UnsafeNativeMethods.cs (3)
739
internal static extern SafeCloseSocket.
InnerSafeCloseSocket
accept(
1021
internal static extern SafeCloseSocket.
InnerSafeCloseSocket
WSASocket(
1031
internal unsafe static extern SafeCloseSocket.
InnerSafeCloseSocket
WSASocket(