opendnp3  3.1.0
Reference implementation of DNP3 (IEEE-1815)
opendnp3::LinkConfig Struct Reference

Configuration for the dnp3 link layer. More...

#include <opendnp3/link/LinkConfig.h>

Public Member Functions

 LinkConfig ()=delete
 
 LinkConfig (bool isMaster, bool useConfirms)
 
 LinkConfig (bool isMaster, uint16_t localAddr, uint16_t remoteAddr, TimeDuration timeout, TimeDuration keepAliveTimeout)
 
Addresses GetAddresses () const
 

Public Attributes

bool IsMaster
 The master/outstation bit set on all messages. More...
 
TimeDuration KeepAliveTimeout
 the interval for keep-alive messages (link status requests) if set to TimeDuration::Max(), the keep-alive is disabled More...
 
uint16_t LocalAddr
 dnp3 address of the local device More...
 
uint16_t RemoteAddr
 dnp3 address of the remote device More...
 
TimeDuration Timeout
 the response timeout in milliseconds for confirmed requests More...
 

Detailed Description

Configuration for the dnp3 link layer.

Definition at line 32 of file LinkConfig.h.

Constructor & Destructor Documentation

◆ LinkConfig() [1/3]

opendnp3::LinkConfig::LinkConfig ( )
delete

◆ LinkConfig() [2/3]

opendnp3::LinkConfig::LinkConfig ( bool  isMaster,
uint16_t  localAddr,
uint16_t  remoteAddr,
TimeDuration  timeout,
TimeDuration  keepAliveTimeout 
)
inline

Definition at line 36 of file LinkConfig.h.

◆ LinkConfig() [3/3]

opendnp3::LinkConfig::LinkConfig ( bool  isMaster,
bool  useConfirms 
)
inline

Definition at line 48 of file LinkConfig.h.

Member Function Documentation

◆ GetAddresses()

Addresses opendnp3::LinkConfig::GetAddresses ( ) const
inline

Definition at line 59 of file LinkConfig.h.

References LocalAddr, and RemoteAddr.

Member Data Documentation

◆ IsMaster

bool opendnp3::LinkConfig::IsMaster

The master/outstation bit set on all messages.

Definition at line 65 of file LinkConfig.h.

◆ KeepAliveTimeout

TimeDuration opendnp3::LinkConfig::KeepAliveTimeout

the interval for keep-alive messages (link status requests) if set to TimeDuration::Max(), the keep-alive is disabled

Definition at line 78 of file LinkConfig.h.

◆ LocalAddr

uint16_t opendnp3::LinkConfig::LocalAddr

dnp3 address of the local device

Definition at line 68 of file LinkConfig.h.

Referenced by GetAddresses().

◆ RemoteAddr

uint16_t opendnp3::LinkConfig::RemoteAddr

dnp3 address of the remote device

Definition at line 71 of file LinkConfig.h.

Referenced by GetAddresses().

◆ Timeout

TimeDuration opendnp3::LinkConfig::Timeout

the response timeout in milliseconds for confirmed requests

Definition at line 74 of file LinkConfig.h.


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