dnp3 (C API) 1.1.0
dnp3_association_handler_t Struct Reference

Callbacks for a particular outstation association. More...

#include <dnp3.h>

Data Fields

dnp3_utc_timestamp_t(* get_current_time )(void *)
 Returns the current time or an invalid time if none is available. More...
 
void(* on_destroy )(void *arg)
 Callback when the underlying owner doesn't need the interface anymore. More...
 
void * ctx
 Context data. More...
 

Detailed Description

Callbacks for a particular outstation association.

Field Documentation

◆ ctx

void* dnp3_association_handler_t::ctx

Context data.

◆ get_current_time

dnp3_utc_timestamp_t(* dnp3_association_handler_t::get_current_time) (void *)

Returns the current time or an invalid time if none is available.

This callback is used when the master performs time synchronization for a particular outstation.

This could return the system clock or some other clock's time

Parameters
ctxContext data
Returns
The current time

◆ on_destroy

void(* dnp3_association_handler_t::on_destroy) (void *arg)

Callback when the underlying owner doesn't need the interface anymore.

Parameters
argContext data

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