1 #ifndef PROTON_IO_CONNECTION_ENGINE_HPP
2 #define PROTON_IO_CONNECTION_ENGINE_HPP
25 #include "../internal/config.hpp"
26 #include "../connection.hpp"
27 #include "../connection_options.hpp"
28 #include "../error.hpp"
29 #include "../error_condition.hpp"
30 #include "../internal/export.hpp"
31 #include "../internal/pn_unique_ptr.hpp"
32 #include "../transport.hpp"
33 #include "../types.hpp"
35 #include <proton/connection_engine.h>
63 const_buffer(
const char* data_=0,
size_t size_=0) : data(data_), size(size_) {}
120 PN_CPP_EXTERN ~connection_engine();
146 PN_CPP_EXTERN
void read_done(
size_t n);
150 PN_CPP_EXTERN
void read_close();
159 PN_CPP_EXTERN
void write_done(
size_t n);
163 PN_CPP_EXTERN
void write_close();
190 PN_CPP_EXTERN
bool dispatch();
203 connection_engine(
const connection_engine&);
204 connection_engine& operator=(
const connection_engine&);
206 internal::pn_unique_ptr<proton_handler> handler_;
208 pn_connection_engine_t c_engine_;
214 #endif // PROTON_IO_CONNECTION_ENGINE_HPP
size_t size
Number of bytes in the buffer.
Definition: connection_engine.hpp:60
A top-level container of connections, sessions, senders, and receivers.
Definition: container.hpp:62
Experimental - Pointer to a const memory region with a size.
Definition: connection_engine.hpp:58
A connection to a remote AMQP peer.
Definition: connection.hpp:48
Options for creating a connection.
Definition: connection_options.hpp:67
mutable_buffer(char *data_=0, size_t size_=0)
Construct a buffer starting at data_ with size_ bytes.
Definition: connection_engine.hpp:54
Experimental - A serial execution context.
Definition: event_loop.hpp:57
const char * data
Beginning of the buffered data.
Definition: connection_engine.hpp:59
char * data
Beginning of the buffered data.
Definition: connection_engine.hpp:50
Experimental - An AMQP protocol engine for a single connection.
Definition: connection_engine.hpp:98
size_t size
Number of bytes in the buffer.
Definition: connection_engine.hpp:51
const_buffer(const char *data_=0, size_t size_=0)
Construct a buffer starting at data_ with size_ bytes.
Definition: connection_engine.hpp:63
A network channel supporting an AMQP connection.
Definition: transport.hpp:42
Experimental - Pointer to a mutable memory region with a size.
Definition: connection_engine.hpp:49
Type traits for mapping between AMQP and C++ types.
Definition: annotation_key.hpp:28
Describes an endpoint error state.
Definition: error_condition.hpp:37