Skip to main content

Interface INetworkAdapter

Base interface for a network adapter

Assembly: Meadow.Contracts.dll
View Source
Declaration
public interface INetworkAdapter

Properties

Name

Gets the friendly name of the Adapter

View Source
Declaration
string Name { get; }

IsConnected

Indicate if the network adapter is connected to an access point.

View Source
Declaration
bool IsConnected { get; }

IpAddress

IP Address of the network adapter.

View Source
Declaration
IPAddress IpAddress { get; }

SubnetMask

Subnet mask of the adapter.

View Source
Declaration
IPAddress SubnetMask { get; }

Gateway

Default gateway for the adapter.

View Source
Declaration
IPAddress Gateway { get; }

MacAddress

Physical (MAC) address of the adapter

View Source
Declaration
PhysicalAddress MacAddress { get; }

DnsAddresses

DNS Addresses of the network adapter.

View Source
Declaration
IPAddressCollection DnsAddresses { get; }

Events

NetworkConnected

Event raised when a network is connected

View Source
Declaration
event NetworkConnectionHandler NetworkConnected
Event Type

Meadow.Hardware.NetworkConnectionHandler

NetworkDisconnected

Event raised when a network is disconnected

View Source
Declaration
event NetworkDisconnectionHandler NetworkDisconnected
Event Type

Meadow.Hardware.NetworkDisconnectionHandler

NetworkError

Event raised on an unexpected network error.

View Source
Declaration
event NetworkErrorHandler NetworkError
Event Type

Meadow.Hardware.NetworkErrorHandler