Qpid Proton C++ 0.38.0
 
Loading...
Searching...
No Matches
link

A named channel for sending or receiving messages. More...

#include <link.hpp>

Inheritance diagram for link:
endpoint receiver sender

Public Member Functions

 link ()
 Create an empty link.
 
bool uninitialized () const
 True if the local end is uninitialized.
 
bool active () const
 True if the local end is active.
 
bool closed () const
 True if the local and remote ends are closed.
 
class error_condition error () const
 Get the error condition of the remote endpoint.
 
void close ()
 Close the endpoint.
 
void close (const error_condition &)
 Close the endpoint with an error condition.
 
void detach ()
 Suspend the link without closing it.
 
int credit () const
 Credit available on the link.
 
bool draining ()
 Unsettled API - True for a receiver if a drain cycle has been started and the corresponding on_receiver_drain_finish event is still pending.
 
std::string name () const
 Get the link name.
 
class containercontainer () const
 The container for this link.
 
class work_queuework_queue () const
 Get the work_queue for the link.
 
class connection connection () const
 The connection that owns this link.
 
class session session () const
 The session that owns this link.
 
std::map< symbol, valueproperties () const
 Unsettled API - Properties supplied by the remote link endpoint.
 
- Public Member Functions inherited from endpoint

Detailed Description

A named channel for sending or receiving messages.

It is the base class for sender and receiver.

Member Function Documentation

◆ uninitialized()

bool uninitialized ( ) const
virtual

True if the local end is uninitialized.

Implements endpoint.

◆ active()

bool active ( ) const
virtual

True if the local end is active.

Implements endpoint.

◆ closed()

bool closed ( ) const
virtual

True if the local and remote ends are closed.

Implements endpoint.

◆ error()

class error_condition error ( ) const
virtual

Get the error condition of the remote endpoint.

Implements endpoint.

◆ close() [1/2]

void close ( )
virtual

Close the endpoint.

Implements endpoint.

Examples
direct_recv.cpp, helloworld.cpp, service_bus.cpp, and simple_recv.cpp.

◆ close() [2/2]

void close ( const error_condition & )
virtual

Close the endpoint with an error condition.

Implements endpoint.

◆ detach()

void detach ( )

Suspend the link without closing it.

A suspended link may be reopened with the same or different link options if supported by the peer. A suspended durable subscription becomes inactive without cancelling it.

◆ draining()

bool draining ( )

Unsettled API - True for a receiver if a drain cycle has been started and the corresponding on_receiver_drain_finish event is still pending.

True for a sender if the receiver has requested a drain of credit and the sender has unused credit.

See also
receiver::drain.

The documentation for this class was generated from the following file: