C# Class System.Net.Sockets.SafeCloseSocket

Inheritance: DebugSafeHandleMinusOneIsInvalidSafeHandleMinusOneIsInvalid
ファイルを表示 Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
Accept ( SafeCloseSocket socketHandle, byte socketAddress, int &socketAddressSize, SafeCloseSocket &socket ) : SocketError
AddRef ( ) : void
CreateSocket ( IntPtr fileDescriptor ) : SafeCloseSocket
CreateSocket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, SafeCloseSocket &socket ) : SocketError
GetOrAllocateThreadPoolBoundHandle ( ) : ThreadPoolBoundHandle
Release ( ) : void

Protected Methods

Method Description
CreateSocket ( InnerSafeCloseSocket socket, SafeCloseSocket target ) : void
ReleaseHandle ( ) : bool
SafeCloseSocket ( ) : Microsoft.Win32.SafeHandles

Private Methods

Method Description
Accept ( SafeCloseSocket socketHandle, byte socketAddress, int &socketAddressSize ) : SafeCloseSocket
CloseAsIs ( ) : void
CreateSocket ( InnerSafeCloseSocket socket ) : SafeCloseSocket
CreateWSASocket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType ) : SafeCloseSocket
CreateWSASocket ( byte pinnedBuffer ) : SafeCloseSocket
InnerReleaseHandle ( ) : void
SetInnerSocket ( InnerSafeCloseSocket socket ) : void

Method Details

Accept() public static method

public static Accept ( SafeCloseSocket socketHandle, byte socketAddress, int &socketAddressSize, SafeCloseSocket &socket ) : SocketError
socketHandle SafeCloseSocket
socketAddress byte
socketAddressSize int
socket SafeCloseSocket
return SocketError

AddRef() public method

public AddRef ( ) : void
return void

CreateSocket() public static method

public static CreateSocket ( IntPtr fileDescriptor ) : SafeCloseSocket
fileDescriptor IntPtr
return SafeCloseSocket

CreateSocket() public static method

public static CreateSocket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, SafeCloseSocket &socket ) : SocketError
addressFamily AddressFamily
socketType SocketType
protocolType ProtocolType
socket SafeCloseSocket
return SocketError

CreateSocket() protected static method

protected static CreateSocket ( InnerSafeCloseSocket socket, SafeCloseSocket target ) : void
socket InnerSafeCloseSocket
target SafeCloseSocket
return void

GetOrAllocateThreadPoolBoundHandle() public method

public GetOrAllocateThreadPoolBoundHandle ( ) : ThreadPoolBoundHandle
return System.Threading.ThreadPoolBoundHandle

Release() public method

public Release ( ) : void
return void

ReleaseHandle() protected method

protected ReleaseHandle ( ) : bool
return bool

SafeCloseSocket() protected method

protected SafeCloseSocket ( ) : Microsoft.Win32.SafeHandles
return Microsoft.Win32.SafeHandles