dnp3 (C API) 1.1.0
dnp3_connection_state_listener_t Struct Reference

Callback interface for connection state events. More...

#include <dnp3.h>

Data Fields

void(* on_change )(dnp3_connection_state_t, void *)
 Called when the connection state changes. 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

Callback interface for connection state events.

Field Documentation

◆ ctx

void* dnp3_connection_state_listener_t::ctx

Context data.

◆ on_change

void(* dnp3_connection_state_listener_t::on_change) (dnp3_connection_state_t, void *)

Called when the connection state changes.

Parameters
stateNew state of the connection
ctxContext data

◆ on_destroy

void(* dnp3_connection_state_listener_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: