Click or drag to resize
Interface Class
Represents an abstract network interface object which acts as an interface between the network software stack and the NIC hardware.
Inheritance Hierarchy
SystemObject
  Network.Sim.CoreInterface

Namespace: Network.Sim.Core
Assembly: Network.Sim (in Network.Sim.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Interface

The Interface type exposes the following members.

Constructors
  NameDescription
Public methodInterface(Nic, String, String, String)
Initializes a new instance of the Interface class using the specified parameters.
Public methodInterface(Nic, String, IpAddress, IpAddress, IpAddress)
Initializes a new instance of the Interface class using the specified parameters.
Top
Properties
  NameDescription
Public propertyFullName
The full name including Host prefix. This is only used for printing to the simulation console.
Public propertyGateway
The default gateway of the interface.
Public propertyHostname
The hostname set on the interface.
Public propertyIpAddress
The logical layer-3 IP address of the interface.
Public propertyMaximumTransmissionUnit
The maximum transmission unit (MTU) of the data-link layer implementation of the NIC.
Public propertyName
The name associated with the interface.
Public propertyNetmask
The subnet mask of the interface.
Public propertyNic
The NIC that is associated with the interface.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOutput
Hands down the specified data to the data-link layer implementation of the NIC.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventDataReceivedEvent
The event that is raised when the interface has received new data.
Public eventSendFifoEmptyEvent
The event that is raised when the output FIFO of the NIC has been fully consumed.
Top
See Also