dnp3 (.NET API) 1.6.0
Loading...
Searching...
No Matches
dnp3.IConnectionHandler Interface Reference

Callbacks to user code that determine how the server processes connections More...

Public Member Functions

void Accept (string remoteAddr, AcceptHandler acceptor)
 Filter the connection solely based on the remote address More...
 
void Start (string remoteAddr, MasterChannel channel)
 Start a communication session that was previously accepted using only the socket address More...
 
void AcceptWithLinkId (string remoteAddr, ushort source, ushort destination, IdentifiedLinkHandler acceptor)
 Filter the connection based on the source and destination of the first link-layer frame More...
 
void StartWithLinkId (string remoteAddr, ushort source, ushort destination, MasterChannel channel)
 Start a communication session that was previously accepted using link identity information. More...
 

Detailed Description

Callbacks to user code that determine how the server processes connections

Member Function Documentation

◆ Accept()

void dnp3.IConnectionHandler.Accept ( string  remoteAddr,
AcceptHandler  acceptor 
)

Filter the connection solely based on the remote address

Parameters
remoteAddrSocket address of the remote outstation, e.g. 192.168.0.22:51532
acceptorClass used to handle the accept

◆ AcceptWithLinkId()

void dnp3.IConnectionHandler.AcceptWithLinkId ( string  remoteAddr,
ushort  source,
ushort  destination,
IdentifiedLinkHandler  acceptor 
)

Filter the connection based on the source and destination of the first link-layer frame

Parameters
remoteAddrSocket address of the remote outstation, e.g. 192.168.0.22:51532
sourceSource address from the frame
destinationDestination address from the frame
acceptorClass used to handle the accept

◆ Start()

void dnp3.IConnectionHandler.Start ( string  remoteAddr,
MasterChannel  channel 
)

Start a communication session that was previously accepted using only the socket address

Warning: You must add associations and/or enable the channel from a different thread than this callback as those methods cannot be called on the Tokio runtime

Parameters
remoteAddrSocket address of the remote outstation, e.g. 192.168.0.22:51532
channelClass used to control the channel

◆ StartWithLinkId()

void dnp3.IConnectionHandler.StartWithLinkId ( string  remoteAddr,
ushort  source,
ushort  destination,
MasterChannel  channel 
)

Start a communication session that was previously accepted using link identity information.

Warning: You must add associations and/or enable the channel from a different thread than this callback as those methods cannot be called on the Tokio runtime

Parameters
remoteAddrSocket address of the remote outstation, e.g. 192.168.0.22:51532
sourceSource address from the frame
destinationDestination address from the frame
channelClass used to control the channel

The documentation for this interface was generated from the following file: