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

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

#include <dnp3.hpp>

Public Member Functions

 AcceptHandler (AcceptHandler &&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...
 
ParamError get_link_identity ()
 Request that server attempt to identify the outstation by reading a link-layer header from the physical layer within a timeout. More...
 

Friends

class CppAcceptHandlerFriend
 

Detailed Description

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

Constructor & Destructor Documentation

◆ AcceptHandler()

dnp3::AcceptHandler::AcceptHandler ( AcceptHandler &&  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::AcceptHandler::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

◆ get_link_identity()

ParamError dnp3::AcceptHandler::get_link_identity ( )

Request that server attempt to identify the outstation by reading a link-layer header from the physical layer within a timeout.

This header is typically the beginning of an unsolicited fragment from the outstation.

Returns
Enumeration describing the result of the operation

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