C# 클래스 OpenHome.Net.Core.NetworkAdapter

A network adapter.
파일 보기 프로젝트 열기: openhome/ohNet 1 사용 예제들

공개 메소드들

메소드 설명
AddRef ( string aCookie ) : void

Claim a reference to the network adapter.

Can only be called from code that can guarantee another reference is already held. Each call to AddRef() must later have exactly one matching call to RemoveRef().

Address ( ) : uint

Get the ip address for the network interface.

FullName ( ) : string

Get the full name for a given network interface.

Mask ( ) : uint

Get the netmask for the network interface.

Name ( ) : string

Get the name for a given network interface.

NetworkAdapter ( IntPtr aHandle ) : System

Constructor. Not intended for external use.

Network adapters should be constructed via the SubnetList classes.

RemoveRef ( string aCookie ) : void

Remove a reference to the network adapter.

Removing the final reference causes the network adapter to be deleted.

Subnet ( ) : uint

Get the subnet address for the network interface.

비공개 메소드들

메소드 설명
AddManagedCookie ( string aCookie, IntPtr aCString ) : CookieWrapper
Handle ( ) : IntPtr
OhNetNetworkAdapterAddRef ( IntPtr aNif, IntPtr aCookie ) : void
OhNetNetworkAdapterAddress ( IntPtr aNif ) : uint
OhNetNetworkAdapterFullName ( IntPtr aNif ) : IntPtr
OhNetNetworkAdapterMask ( IntPtr aNif ) : uint
OhNetNetworkAdapterName ( IntPtr aNif ) : IntPtr
OhNetNetworkAdapterRemoveRef ( IntPtr aNif, IntPtr aCookie ) : void
OhNetNetworkAdapterSubnet ( IntPtr aNif ) : uint

메소드 상세

AddRef() 공개 메소드

Claim a reference to the network adapter.
Can only be called from code that can guarantee another reference is already held. Each call to AddRef() must later have exactly one matching call to RemoveRef().
public AddRef ( string aCookie ) : void
aCookie string
리턴 void

Address() 공개 메소드

Get the ip address for the network interface.
public Address ( ) : uint
리턴 uint

FullName() 공개 메소드

Get the full name for a given network interface.
public FullName ( ) : string
리턴 string

Mask() 공개 메소드

Get the netmask for the network interface.
public Mask ( ) : uint
리턴 uint

Name() 공개 메소드

Get the name for a given network interface.
public Name ( ) : string
리턴 string

NetworkAdapter() 공개 메소드

Constructor. Not intended for external use.
Network adapters should be constructed via the SubnetList classes.
public NetworkAdapter ( IntPtr aHandle ) : System
aHandle System.IntPtr Handle to the underlying native network adapter.
리턴 System

RemoveRef() 공개 메소드

Remove a reference to the network adapter.
Removing the final reference causes the network adapter to be deleted.
public RemoveRef ( string aCookie ) : void
aCookie string
리턴 void

Subnet() 공개 메소드

Get the subnet address for the network interface.
public Subnet ( ) : uint
리턴 uint