C# 클래스 BACnet.IP.ForeignDevicePort

상속: IPort, IDisposable
파일 보기 프로젝트 열기: LorenVS/bacstack

공개 메소드들

메소드 설명
Dispose ( ) : void

Disposes of the foreign device port

ForeignDevicePort ( ForeignDevicePortOptions options ) : System

Constructs a new foreign device port instance

HandleMessage ( IMessage message ) : bool

Handles a message queued on this session.

Open ( ) : void

Opens the foreign device port

Resolve ( IEnumerable processes ) : void

Resolves the port's dependencies

SendNetgram ( OutboundNetgram netgram ) : void

Sends a netgram out of this port

비공개 메소드들

메소드 설명
_createBbmdMac ( ) : void

Creates the bbmd mac address

_createInboundNetgram ( Mac mac, byte buffer, int offset, int length ) : NetgramReceivedMessage

Creates an inbound netgram

_createMessage ( FunctionCode function ) : IBvlcMessage

Creates a new bvlc message based on a function code

_createServer ( ) : void

Creates the udp socket

_disposeAll ( ) : void

Disposes all of the resources held by an open port, in preparation for transitioning back to a closed state

_onDatagramReceived ( IPEndPoint ep, byte buffer, int length ) : void

Called whenever a datagram is received

_processMessage ( Mac mac, IBvlcMessage message, byte buffer, int offset, int length ) : NetgramReceivedMessage

Processes a received bvlc message

_processResult ( Mac mac, ResultCode code ) : void

Processes a received result message

_register ( object state ) : void

Registers the foreign device with the remote bbmd

_requireState ( State state ) : void

Checks to make sure that the port is in state

_sendMessage ( Mac mac, IBvlcMessage message ) : void

Sends a bvlc message

_startRegistering ( ) : void

Begins registration of the foreign device with the BBMD

메소드 상세

Dispose() 공개 메소드

Disposes of the foreign device port
public Dispose ( ) : void
리턴 void

ForeignDevicePort() 공개 메소드

Constructs a new foreign device port instance
public ForeignDevicePort ( ForeignDevicePortOptions options ) : System
options ForeignDevicePortOptions The options to create the port with
리턴 System

HandleMessage() 공개 메소드

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

Open() 공개 메소드

Opens the foreign device port
public Open ( ) : void
리턴 void

Resolve() 공개 메소드

Resolves the port's dependencies
public Resolve ( IEnumerable processes ) : void
processes IEnumerable The processes
리턴 void

SendNetgram() 공개 메소드

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