- Parameters
-
[in] | dsn | the DNS string |
[in] | context | an optional attributes object |
[in] | install_handlers | whether to install a termination handler |
- Exceptions
-
std::invalid_argument | if DNS string is invalid |
std::invalid_argument | if context object contains invalid key |
- Note
- If dns is empty, the client is disabled.
-
In case install_handlers is set to
true
(default), the currently installed termination handler is replaced by a new termination handler that first reports possibly uncaught exceptions and then executes the previously installed termination handler. Note that termination handlers installed after creating this client would override this termination behavior. The termination handler can be installed later with function install_handler().
- Since
- 0.0.1
Definition at line 51 of file crow.cpp.