C# Class OpenHome.Net.Core.NetworkAdapter

A network adapter.
Afficher le fichier Open project: openhome/ohNet Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

AddRef() public méthode

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
Résultat void

Address() public méthode

Get the ip address for the network interface.
public Address ( ) : uint
Résultat uint

FullName() public méthode

Get the full name for a given network interface.
public FullName ( ) : string
Résultat string

Mask() public méthode

Get the netmask for the network interface.
public Mask ( ) : uint
Résultat uint

Name() public méthode

Get the name for a given network interface.
public Name ( ) : string
Résultat string

NetworkAdapter() public méthode

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.
Résultat System

RemoveRef() public méthode

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
Résultat void

Subnet() public méthode

Get the subnet address for the network interface.
public Subnet ( ) : uint
Résultat uint