1 #ifndef PROTON_CONNECTION_OPTIONS_H 2 #define PROTON_CONNECTION_OPTIONS_H 27 #include "./internal/config.hpp" 28 #include "./internal/export.hpp" 29 #include "./internal/pn_unique_ptr.hpp" 30 #include "./duration.hpp" 32 #include <proton/type_compat.h> 37 struct pn_connection_t;
73 PN_CPP_EXTERN ~connection_options();
76 PN_CPP_EXTERN connection_options&
operator=(
const connection_options&);
89 PN_CPP_EXTERN connection_options&
max_sessions(uint16_t max);
96 PN_CPP_EXTERN connection_options&
container_id(
const std::string &
id);
104 PN_CPP_EXTERN connection_options&
virtual_host(
const std::string &name);
112 PN_CPP_EXTERN connection_options&
user(
const std::string&
user);
115 PN_CPP_EXTERN connection_options&
password(
const std::string& pass);
121 PN_CPP_EXTERN connection_options& reconnect(
const reconnect_timer &);
148 PN_CPP_EXTERN connection_options&
update(
const connection_options& other);
156 internal::pn_unique_ptr<impl> impl_;
167 #endif // PROTON_CONNECTION_OPTIONS_H Experimental - SSL configuration for inbound connections.
Definition: ssl.hpp:145
A top-level container of connections, sessions, senders, and receivers.
Definition: container.hpp:50
connection_options & user(const std::string &user)
Set the user name used to authenticate the connection.
connection_options & max_sessions(uint16_t max)
Set the maximum number of open sessions.
connection_options & update(const connection_options &other)
Update option values from values set in other.
A span of time in milliseconds.
Definition: duration.hpp:36
connection_options & sasl_allowed_mechs(const std::string &)
Specify the allowed mechanisms for use on the connection.
connection_options & sasl_config_path(const std::string &)
Experimental - Set the SASL configuration path.
A connection to a remote AMQP peer.
Definition: connection.hpp:40
Options for creating a connection.
Definition: connection_options.hpp:62
connection_options()
Create an empty set of options.
connection_options & ssl_server_options(const class ssl_server_options &)
Set SSL server options.
Experimental - SSL configuration for outbound connections.
Definition: ssl.hpp:172
connection_options & handler(class messaging_handler &)
Set a connection handler.
connection_options & sasl_enabled(bool)
Enable or disable SASL.
connection_options & ssl_client_options(const class ssl_client_options &)
Set SSL client options.
Forward declarations for all the C++ types used by Proton to represent AMQP types.
connection_options & sasl_allow_insecure_mechs(bool)
Force the enabling of SASL mechanisms that disclose clear text passwords over the connection...
connection_options & password(const std::string &pass)
Set the password used to authenticate the connection.
connection_options & idle_timeout(duration)
Set the idle timeout.
connection_options & operator=(const connection_options &)
Copy options.
A handler for Proton messaging events.
Definition: messaging_handler.hpp:59
connection_options & max_frame_size(uint32_t max)
Set the maximum frame size.
connection_options & virtual_host(const std::string &name)
Set the virtual host name for the connection.
connection_options & container_id(const std::string &id)
Set the container ID.
connection_options & sasl_config_name(const std::string &)
Experimental - Set the SASL configuration name.
Experimental - An AMQP driver for a single connection.
Definition: connection_driver.hpp:94
The main Proton namespace.
Definition: annotation_key.hpp:30