dnp3 (C++ API) 1.6.0
Loading...
Searching...
No Matches
dnp3::OutstationUdpConfig Struct Reference

UDP outstation configuration. More...

#include <dnp3.hpp>

Public Member Functions

 OutstationUdpConfig (const std::string &local_endpoint, const std::string &remote_endpoint)
 Initialize the configuration with default settings for unspecified parameter. More...
 

Public Attributes

std::string local_endpoint
 Local endpoint to which the UDP socket is bound. Must be a socket address (ip:port) More...
 
std::string remote_endpoint
 Remote endpoint where outbound requests are sent. Must be a socket address (ip:port) More...
 
UdpSocketMode socket_mode
 UDP socket mode to use. More...
 
LinkReadMode link_read_mode
 Read mode to use, this should typically be set to LinkReadMode::datagram More...
 
std::chrono::steady_clock::duration retry_delay
 Period to wait before retrying after a failure to bind or connect the UDP socket. More...
 

Friends

class CppOutstationUdpConfigFriend
 

Detailed Description

UDP outstation configuration.

Constructor & Destructor Documentation

◆ OutstationUdpConfig()

dnp3::OutstationUdpConfig::OutstationUdpConfig ( const std::string &  local_endpoint,
const std::string &  remote_endpoint 
)

Initialize the configuration with default settings for unspecified parameter.

Note
Values are initialized to:
Parameters
local_endpointLocal endpoint to which the UDP socket is bound. Must be a socket address (ip:port)
remote_endpointRemote endpoint where outbound requests are sent. Must be a socket address (ip:port)
Returns
New instance of OutstationUdpConfig

Member Data Documentation

◆ link_read_mode

LinkReadMode dnp3::OutstationUdpConfig::link_read_mode

Read mode to use, this should typically be set to LinkReadMode::datagram

◆ local_endpoint

std::string dnp3::OutstationUdpConfig::local_endpoint

Local endpoint to which the UDP socket is bound. Must be a socket address (ip:port)

◆ remote_endpoint

std::string dnp3::OutstationUdpConfig::remote_endpoint

Remote endpoint where outbound requests are sent. Must be a socket address (ip:port)

◆ retry_delay

std::chrono::steady_clock::duration dnp3::OutstationUdpConfig::retry_delay

Period to wait before retrying after a failure to bind or connect the UDP socket.

◆ socket_mode

UdpSocketMode dnp3::OutstationUdpConfig::socket_mode

UDP socket mode to use.


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