Provides fine-grained control over how TCP and TLS clients connect to endpoints.
More...
#include <dnp3.hpp>
|
| virtual std::chrono::steady_clock::duration | disconnected (const char *addr, const char *hostname)=0 |
| | Notification that a previously successful connection failed. The task will sleep for the specified duration before attempting another connection. More...
|
| |
| virtual void | connecting (const char *addr, const char *hostname)=0 |
| | Notification that a connection attempt is being made. More...
|
| |
| virtual void | connect_failed (const char *addr, const char *hostname)=0 |
| | Notification that connection operation failed. More...
|
| |
| virtual void | connected (const char *addr, const char *hostname)=0 |
| | Notification that a connection attempt succeeded. More...
|
| |
| virtual void | resolution_failed (const char *hostname)=0 |
| | Notification that DNS resolution failed. More...
|
| |
| virtual void | next (NextEndpointAction &action)=0 |
| | 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...
|
| |
Provides fine-grained control over how TCP and TLS clients connect to endpoints.
- Note
- this class is an "interface" and only has virtual methods, some of which may have default implementations.
◆ connect_failed()
| virtual void dnp3::ClientConnectionHandler::connect_failed |
( |
const char * |
addr, |
|
|
const char * |
hostname |
|
) |
| |
|
pure virtual |
Notification that connection operation failed.
- Parameters
-
| addr | Socket address that failed to connect |
| hostname | Optional hostname (empty string if none) |
◆ connected()
| virtual void dnp3::ClientConnectionHandler::connected |
( |
const char * |
addr, |
|
|
const char * |
hostname |
|
) |
| |
|
pure virtual |
Notification that a connection attempt succeeded.
- Parameters
-
| addr | Socket address that connected successfully |
| hostname | Optional hostname (empty string if none) |
◆ connecting()
| virtual void dnp3::ClientConnectionHandler::connecting |
( |
const char * |
addr, |
|
|
const char * |
hostname |
|
) |
| |
|
pure virtual |
Notification that a connection attempt is being made.
- Parameters
-
| addr | Socket address being connected to |
| hostname | Optional hostname (empty string if none) |
◆ disconnected()
| virtual std::chrono::steady_clock::duration dnp3::ClientConnectionHandler::disconnected |
( |
const char * |
addr, |
|
|
const char * |
hostname |
|
) |
| |
|
pure virtual |
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) |
- 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 |
◆ resolution_failed()
| virtual void dnp3::ClientConnectionHandler::resolution_failed |
( |
const char * |
hostname | ) |
|
|
pure virtual |
Notification that DNS resolution failed.
- Parameters
-
| hostname | Hostname that failed to resolve |
The documentation for this class was generated from the following file: