1 #ifndef PROTON_CONNECTION_DRIVER_H
2 #define PROTON_CONNECTION_DRIVER_H 1
77 #include <proton/import_export.h>
void pn_connection_driver_log(pn_connection_driver_t *d, const char *msg)
Log a string message using the connection's transport log.
struct pn_connection_driver_t pn_connection_driver_t
The elements needed to drive AMQP IO and events.
int pn_connection_driver_bind(pn_connection_driver_t *d)
Force binding of the transport.
void pn_connection_driver_errorf(pn_connection_driver_t *d, const char *name, const char *fmt,...)
Set IO error information.
void pn_connection_driver_vlogf(pn_connection_driver_t *d, const char *fmt, va_list ap)
Log a printf formatted message using the connection's transport log.
pn_connection_driver_t * pn_event_batch_connection_driver(pn_event_batch_t *batch)
If batch is part of a connection_driver, return the connection_driver address, else return NULL...
pn_event_t * pn_connection_driver_next_event(pn_connection_driver_t *)
Get the next event to handle.
bool pn_connection_driver_has_event(pn_connection_driver_t *)
True if pn_connection_driver_next_event() will return a non-NULL event.
struct pn_transport_t pn_transport_t
An AMQP Transport object.
Definition: types.h:419
pn_rwbytes_t pn_connection_driver_read_buffer(pn_connection_driver_t *)
Get the read buffer.
A non-const byte buffer.
Definition: types.h:225
struct pn_event_batch_t pn_event_batch_t
Experimental - A batch of events to handle.
Definition: event.h:544
The elements needed to drive AMQP IO and events.
Definition: connection_driver.h:90
void pn_connection_driver_logf(pn_connection_driver_t *d, char *fmt,...)
Log a printf formatted message using the connection's transport log.
bool pn_connection_driver_write_closed(pn_connection_driver_t *)
True if write side is closed.
void pn_connection_driver_read_close(pn_connection_driver_t *)
Close the read side.
bool pn_connection_driver_read_closed(pn_connection_driver_t *)
True if read side is closed.
pn_bytes_t pn_connection_driver_write_buffer(pn_connection_driver_t *)
Get the write buffer.
void pn_connection_driver_verrorf(pn_connection_driver_t *d, const char *name, const char *fmt, va_list)
Set IO error information via a va_list, see pn_connection_driver_errorf()
int pn_connection_driver_init(pn_connection_driver_t *, pn_connection_t *, pn_transport_t *)
Set connection and transport to the provided values, or create a new pn_connection_t or pn_transport_...
void pn_connection_driver_close(pn_connection_driver_t *c)
Close both sides side.
bool pn_connection_driver_finished(pn_connection_driver_t *)
Return true if the the driver is closed for reading and writing and there are no more events...
Protocol and transport events.
void pn_connection_driver_write_close(pn_connection_driver_t *)
Close the write side.
struct pn_connection_t pn_connection_t
An AMQP Connection object.
Definition: types.h:275
void pn_connection_driver_destroy(pn_connection_driver_t *)
Unbind, release and free the connection and transport.
void pn_connection_driver_write_done(pn_connection_driver_t *, size_t n)
Call when the first n bytes of pn_connection_driver_write_buffer() have been written to IO...
void pn_connection_driver_read_done(pn_connection_driver_t *, size_t n)
Process the first n bytes of data in pn_connection_driver_read_buffer() and reclaim the buffer space...
A const byte buffer.
Definition: types.h:206
struct pn_event_t pn_event_t
Notification of a state change in the protocol engine.
Definition: event.h:75