1 #ifndef PROTON_CPP_CONNECTION_OPTIONS_H
2 #define PROTON_CPP_CONNECTION_OPTIONS_H
25 #include "proton/config.hpp"
26 #include "proton/export.hpp"
27 #include "proton/pn_unique_ptr.hpp"
28 #include "proton/reconnect_timer.hpp"
68 PN_CPP_EXTERN ~connection_options();
71 PN_CPP_EXTERN connection_options&
operator=(
const connection_options&);
74 PN_CPP_EXTERN
void override(
const connection_options& other);
83 PN_CPP_EXTERN connection_options&
max_channels(uint16_t max);
90 PN_CPP_EXTERN connection_options& heartbeat(
duration);
94 PN_CPP_EXTERN connection_options&
container_id(
const std::string &
id);
99 PN_CPP_EXTERN connection_options& link_prefix(
const std::string &
id);
102 PN_CPP_EXTERN connection_options& reconnect(
const reconnect_timer &);
115 PN_CPP_EXTERN connection_options& peer_hostname(
const std::string &name);
118 PN_CPP_EXTERN connection_options& resume_id(
const std::string &
id);
127 PN_CPP_EXTERN connection_options& allow_insecure_mechs(
bool);
128 PN_CPP_EXTERN connection_options& allowed_mechs(
const std::string &);
139 proton_handler* handler()
const;
140 static pn_connection_t *pn_connection(
connection &);
141 class ssl_client_options &ssl_client_options();
142 class ssl_server_options &ssl_server_options();
145 pn_unique_ptr<impl> impl_;
148 friend class container_impl;
149 friend class connector;
156 #endif // PROTON_CPP_CONNECTION_OPTIONS_H
SSL configuration for inbound connections.
Definition: ssl.hpp:134
connection_options & max_channels(uint16_t max)
Set the maximum channels.
An interface for connection-oriented IO integration.
Definition: connection_engine.hpp:64
A span of time in milliseconds.
Definition: duration.hpp:32
connection_options & sasl_config_path(const std::string &)
Set the SASL configuration path.
Defines C++ types representing AMQP types.
A connection to a remote AMQP peer.
Definition: connection.hpp:42
Options for creating a connection.
Definition: connection_options.hpp:60
connection_options()
Create an empty set of options.
SSL configuration for outbound connections.
Definition: ssl.hpp:161
connection_options & sasl_enabled(bool)
Enable or disable SASL.
Callback functions for handling proton events.
Definition: handler.hpp:40
connection_options & idle_timeout(duration)
Set the idle timeout.
connection_options & operator=(const connection_options &)
Copy options.
connection_options & max_frame_size(uint32_t max)
Set the maximum frame size.
connection_options & container_id(const std::string &id)
Set the container ID.
connection_options & sasl_config_name(const std::string &)
Set the SASL configuration name.