![]() |
dnp3 (C++ API) 1.6.0
|
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 |
Class used to accept a connection, reject it, or defer it to link identification.
|
inlinenoexcept |
Transfer ownership of the underlying C-type to this instance and invalidate the other instance.
| other | Class from which ownership will be transfer to this instance |
| ParamError dnp3::AcceptHandler::accept | ( | LinkErrorMode | error_mode, |
| const MasterChannelConfig & | config | ||
| ) |
Accept the connection and create a master channel.
| error_mode | Error mode to use for the link-layer. This should typically be LinkErrorMode::close |
| config | Configuration of the channel |
| 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.