1 #ifndef PROTON_LINK_HPP
2 #define PROTON_LINK_HPP
26 #include "./internal/export.hpp"
27 #include "./endpoint.hpp"
28 #include "./internal/object.hpp"
39 PN_CPP_CLASS_EXTERN
link :
public internal::object<pn_link_t> ,
public endpoint {
41 link(pn_link_t* l) : internal::object<pn_link_t>(l) {}
46 link() : internal::object<pn_link_t>(0) {}
48 PN_CPP_EXTERN
bool uninitialized()
const;
49 PN_CPP_EXTERN
bool active()
const;
50 PN_CPP_EXTERN
bool closed()
const;
54 PN_CPP_EXTERN
void close();
62 PN_CPP_EXTERN
void detach();
65 PN_CPP_EXTERN
int credit()
const;
73 PN_CPP_EXTERN
bool draining();
76 PN_CPP_EXTERN std::string name()
const;
93 friend class internal::factory<
link>;
100 #endif // PROTON_LINK_HPP
A top-level container of connections, sessions, senders, and receivers.
Definition: container.hpp:47
A named channel for sending or receiving messages.
Definition: link.hpp:38
A connection to a remote AMQP peer.
Definition: connection.hpp:40
The base class for session, connection, and link.
Definition: endpoint.hpp:32
A container of senders and receivers.
Definition: session.hpp:38
link()
Create an empty link.
Definition: link.hpp:46
The base Proton error.
Definition: error.hpp:37
Describes an endpoint error state.
Definition: error_condition.hpp:37