Options that control how TCP connections are established.
More...
#include <dnp3.hpp>
|
|
class | CppConnectOptionsFriend |
| |
Options that control how TCP connections are established.
◆ ConnectOptions() [1/2]
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 |
◆ ConnectOptions() [2/2]
| dnp3::ConnectOptions::ConnectOptions |
( |
| ) |
|
Initialize to the defaults.
◆ ~ConnectOptions()
| dnp3::ConnectOptions::~ConnectOptions |
( |
| ) |
|
◆ set_local_endpoint()
| void dnp3::ConnectOptions::set_local_endpoint |
( |
const std::string & |
endpoint | ) |
|
Set the local address to which the socket is bound.
If not specified, then any available adapter may be used with an OS assigned port.
- Parameters
-
| endpoint | String in 'address:port' format, where address can be IPv4 or IPv6. Using 0 for the port results in an OS assigned port |
- Exceptions
-
◆ set_timeout()
| void dnp3::ConnectOptions::set_timeout |
( |
std::chrono::steady_clock::duration |
timeout | ) |
|
Set a timeout for the TCP connection that might be less than the default for the OS.
- Parameters
-
The documentation for this class was generated from the following file: