A container of senders and receivers. More...
#include <session.hpp>
Public Member Functions | |
session () | |
Create an empty session. | |
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 | open () |
Open the session. | |
void | open (const session_options &opts) |
Open the session. | |
void | close () |
Close the endpoint. | |
void | close (const error_condition &) |
Close the endpoint with an error condition. | |
class container & | container () const |
Get the container for this session. | |
class work_queue & | work_queue () const |
Get the work_queue for the session. | |
class connection | connection () const |
Get the connection this session belongs to. | |
sender | open_sender (const std::string &addr) |
Open a sender for addr . | |
sender | open_sender (const std::string &addr, const sender_options &opts) |
Open a sender for addr . | |
receiver | open_receiver (const std::string &addr) |
Open a receiver for addr . | |
receiver | open_receiver (const std::string &addr, const receiver_options &opts) |
Open a receiver for addr . | |
size_t | incoming_bytes () const |
The number of incoming bytes currently buffered. | |
size_t | outgoing_bytes () const |
The number of outgoing bytes currently buffered. | |
sender_range | senders () const |
Return the senders on this session. | |
receiver_range | receivers () const |
Return the receivers on this session. | |
void | user_data (void *user_data) const |
Set user data on this session. | |
void * | user_data () const |
Get user data from this session. | |
virtual bool | uninitialized () const =0 |
True if the local end is uninitialized. | |
virtual bool | active () const =0 |
True if the local end is active. | |
virtual bool | closed () const =0 |
True if the local and remote ends are closed. | |
virtual class error_condition | error () const =0 |
Get the error condition of the remote endpoint. | |
virtual void | close ()=0 |
Close the endpoint. | |
virtual void | close (const error_condition &)=0 |
Close the endpoint with an error condition. | |
A container of senders and receivers.
|
virtual |
True if the local end is uninitialized.
Implements endpoint.
|
virtual |
True if the local end is active.
Implements endpoint.
|
virtual |
True if the local and remote ends are closed.
Implements endpoint.
|
virtual |
Get the error condition of the remote endpoint.
Implements endpoint.
void open | ( | const session_options & | opts | ) |
Open the session.
|
virtual |
Close the endpoint.
Implements endpoint.
|
virtual |
Close the endpoint with an error condition.
Implements endpoint.
sender open_sender | ( | const std::string & | addr, |
const sender_options & | opts | ||
) |
Open a sender for addr
.
receiver open_receiver | ( | const std::string & | addr, |
const receiver_options & | opts | ||
) |
Open a receiver for addr
.