26#include "./internal/export.hpp"
28#include "./internal/object.hpp"
43PN_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) {}
80 PN_CPP_EXTERN std::string
name()
const;
95 PN_CPP_EXTERN std::map<symbol, value>
properties()
const;
109 friend class internal::factory<
link>;
The base class for session, connection, and link.
Definition endpoint.hpp:36
Describes an endpoint error state.
Definition error_condition.hpp:39
class error_condition error() const
Get the error condition of the remote endpoint.
void * user_data() const
Get user data from this link.
bool draining()
Unsettled API - True for a receiver if a drain cycle has been started and the corresponding on_receiv...
std::string name() const
Get the link name.
void close()
Close the endpoint.
void close(const error_condition &)
Close the endpoint with an error condition.
class work_queue & work_queue() const
Get the work_queue for the link.
void user_data(void *user_data) const
Set user data on this link.
bool uninitialized() const
True if the local end is uninitialized.
class session session() const
The session that owns this link.
class container & container() const
The container for this link.
void detach()
Suspend the link without closing it.
link()
Create an empty link.
Definition link.hpp:50
bool active() const
True if the local end is active.
std::map< symbol, value > properties() const
Unsettled API - Properties supplied by the remote link endpoint.
bool closed() const
True if the local and remote ends are closed.
int credit() const
Credit available on the link.
class connection connection() const
The connection that owns this link.
The base class for session, connection, and link.
The main Proton namespace.
Definition annotation_key.hpp:33