C# Class BACnet.Ethernet.EthernetPort

Inheritance: IPort
Afficher le fichier Open project: LorenVS/bacstack Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes of all resources held by the ethernet port

EthernetPort ( EthernetPortOptions options ) : System

Creates a new ethernet port instance

HandleMessage ( IMessage message ) : bool

Handles a message queued on this session.

Open ( ) : void

Opens the port

Resolve ( IEnumerable processes ) : void

Resolves the dependencies of this port

SendNetgram ( OutboundNetgram netgram ) : void

Sends a netgram out of this port

Méthodes protégées

Méthode Description
dispose ( bool disposing ) : void

Disposes of the all resources held by the ethernet port

Private Methods

Méthode Description
_getCaptureDevice ( ) : SharpPcap.LibPcap.LibPcapLiveDevice

Retrieves the capture device that is used by this port

_isOutboundPacket ( byte buffer ) : bool

Determines whether a packet contains an outgoing packet sent by this device

_onPacketArrival ( object sender, SharpPcap.CaptureEventArgs e ) : void

Called whenever a packet is captured on the capture device

Method Details

Dispose() public méthode

Disposes of all resources held by the ethernet port
public Dispose ( ) : void
Résultat void

EthernetPort() public méthode

Creates a new ethernet port instance
public EthernetPort ( EthernetPortOptions options ) : System
options EthernetPortOptions The options for the port
Résultat System

HandleMessage() public méthode

Handles a message queued on this session.
public HandleMessage ( IMessage message ) : bool
message IMessage The message to handle
Résultat bool

Open() public méthode

Opens the port
public Open ( ) : void
Résultat void

Resolve() public méthode

Resolves the dependencies of this port
public Resolve ( IEnumerable processes ) : void
processes IEnumerable The available processes
Résultat void

SendNetgram() public méthode

Sends a netgram out of this port
public SendNetgram ( OutboundNetgram netgram ) : void
netgram BACnet.Core.Datalink.OutboundNetgram The netgram to send
Résultat void

dispose() protected méthode

Disposes of the all resources held by the ethernet port
protected dispose ( bool disposing ) : void
disposing bool
Résultat void