Action object used by ClientConnectionHandler.next() to specify the next connection attempt or sleep duration.
More...
#include <dnp3.hpp>
|
|
class | CppNextEndpointActionFriend |
| |
Action object used by ClientConnectionHandler.next() to specify the next connection attempt or sleep duration.
◆ NextEndpointAction()
Transfer ownership of the underlying C-type to this instance and invalidate the other instance.
- Note
- the moved class will now throw an exception if any method is called
- Parameters
-
| other | Class from which ownership will be transfer to this instance |
◆ connect_to()
Specify the next endpoint to attempt connection to.
- Parameters
-
| info | Connection information including endpoint and optional parameters |
- Returns
- Error status - Ok if successful
◆ sleep_for()
| ParamError dnp3::NextEndpointAction::sleep_for |
( |
std::chrono::steady_clock::duration |
duration | ) |
|
Indicate that the connection task should sleep for the specified duration.
- Parameters
-
| duration | Duration to sleep |
- Returns
- Error status - Ok if successful
The documentation for this class was generated from the following file: