Provides fine-grained control over how TCP and TLS clients connect to endpoints.
More...
#include <dnp3.h>
|
| uint64_t(* | disconnected )(const char *, const char *, void *) |
| | Notification that a previously successful connection failed. The task will sleep for the specified duration before attempting another connection. More...
|
| |
| void(* | connecting )(const char *, const char *, void *) |
| | Notification that a connection attempt is being made. More...
|
| |
| void(* | connect_failed )(const char *, const char *, void *) |
| | Notification that connection operation failed. More...
|
| |
| void(* | connected )(const char *, const char *, void *) |
| | Notification that a connection attempt succeeded. More...
|
| |
| void(* | resolution_failed )(const char *, void *) |
| | Notification that DNS resolution failed. More...
|
| |
| void(* | next )(dnp3_next_endpoint_action_t *, void *) |
| | Called to get the next endpoint to connect to or to sleep for a duration. Use the provided action object to specify the response. More...
|
| |
| void(* | on_destroy )(void *arg) |
| | Callback when the underlying owner doesn't need the interface anymore. More...
|
| |
| void * | ctx |
| | Context data. More...
|
| |
Provides fine-grained control over how TCP and TLS clients connect to endpoints.
◆ connect_failed
| void(* dnp3_client_connection_handler_t::connect_failed) (const char *, const char *, void *) |
Notification that connection operation failed.
- Parameters
-
| addr | Socket address that failed to connect |
| hostname | Optional hostname (empty string if none) |
| ctx | Context data |
◆ connected
| void(* dnp3_client_connection_handler_t::connected) (const char *, const char *, void *) |
Notification that a connection attempt succeeded.
- Parameters
-
| addr | Socket address that connected successfully |
| hostname | Optional hostname (empty string if none) |
| ctx | Context data |
◆ connecting
| void(* dnp3_client_connection_handler_t::connecting) (const char *, const char *, void *) |
Notification that a connection attempt is being made.
- Parameters
-
| addr | Socket address being connected to |
| hostname | Optional hostname (empty string if none) |
| ctx | Context data |
◆ ctx
| void* dnp3_client_connection_handler_t::ctx |
◆ disconnected
| uint64_t(* dnp3_client_connection_handler_t::disconnected) (const char *, const char *, void *) |
Notification that a previously successful connection failed. The task will sleep for the specified duration before attempting another connection.
- Parameters
-
| addr | Socket address that was disconnected |
| hostname | Optional hostname (empty string if none) |
| ctx | Context data |
- Returns
- Amount of time to sleep before attempting to reconnect
◆ next
Called to get the next endpoint to connect to or to sleep for a duration. Use the provided action object to specify the response.
- Parameters
-
| action | Action object to specify next endpoint or sleep duration |
| ctx | Context data |
◆ on_destroy
| void(* dnp3_client_connection_handler_t::on_destroy) (void *arg) |
Callback when the underlying owner doesn't need the interface anymore.
- Parameters
-
◆ resolution_failed
| void(* dnp3_client_connection_handler_t::resolution_failed) (const char *, void *) |
Notification that DNS resolution failed.
- Parameters
-
| hostname | Hostname that failed to resolve |
| ctx | Context data |
The documentation for this struct was generated from the following file: