dnp3 (C++ API) 1.6.0
Loading...
Searching...
No Matches
dnp3::IdentifiedLinkHandler Class Reference

Class used to accept a connection, reject it, or defer it to link identification. More...

#include <dnp3.hpp>

Public Member Functions

 IdentifiedLinkHandler (IdentifiedLinkHandler &&other) noexcept
 Transfer ownership of the underlying C-type to this instance and invalidate the other instance. More...
 
ParamError accept (LinkErrorMode error_mode, const MasterChannelConfig &config)
 Accept the connection and create a master channel. More...
 

Friends

class CppIdentifiedLinkHandlerFriend
 

Detailed Description

Class used to accept a connection, reject it, or defer it to link identification.

Constructor & Destructor Documentation

◆ IdentifiedLinkHandler()

dnp3::IdentifiedLinkHandler::IdentifiedLinkHandler ( IdentifiedLinkHandler &&  other)
inlinenoexcept

Transfer ownership of the underlying C-type to this instance and invalidate the other instance.

Note
the moved class will now throw an exception if any method is called
Parameters
otherClass from which ownership will be transfer to this instance

Member Function Documentation

◆ accept()

ParamError dnp3::IdentifiedLinkHandler::accept ( LinkErrorMode  error_mode,
const MasterChannelConfig config 
)

Accept the connection and create a master channel.

Parameters
error_modeError mode to use for the link-layer. This should typically be LinkErrorMode::close
configConfiguration of the channel
Returns
Enumeration describing the result of the operation

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