1 #ifndef PROTON_LINK_HPP 2 #define PROTON_LINK_HPP 26 #include "./internal/export.hpp" 28 #include "./internal/object.hpp" 43 PN_CPP_CLASS_EXTERN
link :
public internal::object<pn_link_t> ,
public endpoint {
45 link(pn_link_t* l) : internal::object<pn_link_t>(l) {}
50 link() : internal::object<pn_link_t>(0) {}
52 PN_CPP_EXTERN
bool uninitialized()
const;
53 PN_CPP_EXTERN
bool active()
const;
54 PN_CPP_EXTERN
bool closed()
const;
58 PN_CPP_EXTERN
void close();
66 PN_CPP_EXTERN
void detach();
69 PN_CPP_EXTERN
int credit()
const;
77 PN_CPP_EXTERN
bool draining();
80 PN_CPP_EXTERN std::string name()
const;
95 PN_CPP_EXTERN std::map<symbol, value> properties()
const;
103 friend class internal::factory<
link>;
110 #endif // PROTON_LINK_HPP A top-level container of connections, sessions, and links.
Definition: container.hpp:50
A named channel for sending or receiving messages.
Definition: link.hpp:42
A connection to a remote AMQP peer.
Definition: connection.hpp:46
The base class for session, connection, and link.
Definition: endpoint.hpp:36
A container of senders and receivers.
Definition: session.hpp:41
link()
Create an empty link.
Definition: link.hpp:50
Unsettled API - A context for thread-safe execution of work.
Definition: work_queue.hpp:339
The base Proton error.
Definition: error.hpp:40
The main Proton namespace.
Definition: annotation_key.hpp:33
The base class for session, connection, and link.
Describes an endpoint error state.
Definition: error_condition.hpp:40