rodbus (C API) 1.3.1
Loading...
Searching...
No Matches
rodbus_client_state_listener_t Struct Reference

Callback for monitoring the state of a TCP/TLS connection state. More...

#include <rodbus.h>

Data Fields

void(* on_change )(rodbus_client_state_t, void *)
 Called when the client state changed. 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 for monitoring the state of a TCP/TLS connection state.

Field Documentation

◆ ctx

void* rodbus_client_state_listener_t::ctx

Context data.

◆ on_change

void(* rodbus_client_state_listener_t::on_change) (rodbus_client_state_t, void *)

Called when the client state changed.

Parameters
stateNew state
ctxContext data

◆ on_destroy

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