1 #ifndef PROTON_CONNECTION_HPP 2 #define PROTON_CONNECTION_HPP 26 #include "./internal/export.hpp" 27 #include "./internal/object.hpp" 33 #include <proton/type_compat.h> 41 struct pn_connection_t;
47 PN_CPP_CLASS_EXTERN
connection :
public internal::object<pn_connection_t>,
public endpoint {
49 PN_CPP_EXTERN
connection(pn_connection_t* c) : internal::object<pn_connection_t>(c) {}
58 PN_CPP_EXTERN
bool uninitialized()
const;
59 PN_CPP_EXTERN
bool active()
const;
60 PN_CPP_EXTERN
bool closed()
const;
77 PN_CPP_EXTERN std::string virtual_host()
const;
80 PN_CPP_EXTERN std::string container_id()
const;
84 PN_CPP_EXTERN std::string user()
const;
88 PN_CPP_EXTERN
void open();
95 PN_CPP_EXTERN
void close();
101 PN_CPP_EXTERN
session open_session();
108 PN_CPP_EXTERN
session default_session();
111 PN_CPP_EXTERN
sender open_sender(
const std::string& addr);
117 PN_CPP_EXTERN
receiver open_receiver(
const std::string& addr);
120 PN_CPP_EXTERN
receiver open_receiver(
const std::string& addr,
130 PN_CPP_EXTERN session_range sessions()
const;
133 PN_CPP_EXTERN receiver_range receivers()
const;
136 PN_CPP_EXTERN sender_range senders()
const;
141 PN_CPP_EXTERN uint32_t max_frame_size()
const;
147 PN_CPP_EXTERN uint16_t max_sessions()
const;
150 PN_CPP_EXTERN std::vector<symbol> offered_capabilities()
const;
153 PN_CPP_EXTERN std::vector<symbol> desired_capabilities()
const;
156 PN_CPP_EXTERN std::map<symbol, value> properties()
const;
161 PN_CPP_EXTERN uint32_t idle_timeout()
const;
181 PN_CPP_EXTERN
void wake()
const;
187 PN_CPP_EXTERN
bool reconnected()
const;
210 #endif // PROTON_CONNECTION_HPP A top-level container of connections, sessions, and links.
Definition: container.hpp:50
A channel for sending messages.
Definition: sender.hpp:39
Options for creating a sender.
Definition: sender_options.hpp:60
A connection to a remote AMQP peer.
Definition: connection.hpp:46
Options for creating a connection.
Definition: connection_options.hpp:68
The base class for session, connection, and link.
Definition: endpoint.hpp:36
A container of senders and receivers.
Definition: session.hpp:41
A string that represents the AMQP symbol type.
Options for creating a receiver.
Definition: receiver_options.hpp:59
A channel for receiving messages.
Definition: receiver.hpp:40
Unsettled API - A context for thread-safe execution of work.
Definition: work_queue.hpp:339
connection()
Create an empty connection.
Definition: connection.hpp:54
A container of senders and receivers.
A network channel supporting an AMQP connection.
Definition: transport.hpp:37
The base Proton error.
Definition: error.hpp:40
Options for creating a session.
Definition: session_options.hpp:40
The main Proton namespace.
Definition: annotation_key.hpp:33
The base class for session, connection, and link.
A holder for any AMQP value, simple or complex.
Describes an endpoint error state.
Definition: error_condition.hpp:40