C# Class BACnet.Ethernet.EthernetPort

Inheritance: IPort
Show file Open project: LorenVS/bacstack Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
dispose ( bool disposing ) : void

Disposes of the all resources held by the ethernet port

Private Methods

Method 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 method

Disposes of all resources held by the ethernet port
public Dispose ( ) : void
return void

EthernetPort() public method

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

HandleMessage() public method

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

Open() public method

Opens the port
public Open ( ) : void
return void

Resolve() public method

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

SendNetgram() public method

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

dispose() protected method

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