dnp3 (C API) 1.6.0
Loading...
Searching...
No Matches
dnp3_association_information_t Struct Reference

Informational callbacks about the current state of an outstation association. More...

#include <dnp3.h>

Data Fields

void(* task_start )(dnp3_task_type_t, dnp3_function_code_t, uint8_t, void *)
 Called when a new task is started. More...
 
void(* task_success )(dnp3_task_type_t, dnp3_function_code_t, uint8_t, void *)
 Called when a task successfully completes. More...
 
void(* task_fail )(dnp3_task_type_t, dnp3_task_error_t, void *)
 Called when a task fails. More...
 
void(* unsolicited_response )(bool, uint8_t, void *)
 Called when an unsolicited response is received. 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

Informational callbacks about the current state of an outstation association.

Field Documentation

◆ ctx

void* dnp3_association_information_t::ctx

Context data.

◆ on_destroy

void(* dnp3_association_information_t::on_destroy) (void *arg)

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

Parameters
argContext data

◆ task_fail

void(* dnp3_association_information_t::task_fail) (dnp3_task_type_t, dnp3_task_error_t, void *)

Called when a task fails.

Parameters
task_typeType of task that was completed
errorError that prevented
ctxContext data

◆ task_start

void(* dnp3_association_information_t::task_start) (dnp3_task_type_t, dnp3_function_code_t, uint8_t, void *)

Called when a new task is started.

Parameters
task_typeType of task that was started
function_codeFunction code used by the task
seqSequence number of the request
ctxContext data

◆ task_success

void(* dnp3_association_information_t::task_success) (dnp3_task_type_t, dnp3_function_code_t, uint8_t, void *)

Called when a task successfully completes.

Parameters
task_typeType of task that was completed
function_codeFunction code used by the task
seqSequence number of the response that completed the request. This will typically be the same as the seq number in the request, except for READ requests where the response is multi-fragmented.
ctxContext data

◆ unsolicited_response

void(* dnp3_association_information_t::unsolicited_response) (bool, uint8_t, void *)

Called when an unsolicited response is received.

Parameters
is_duplicateIs the unsolicited response a duplicate response
seqSequence number of the response
ctxContext data

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