Qpid Proton C API  0.37.0
raw_connection.h File Reference
#include <proton/condition.h>
#include <proton/event.h>
#include <proton/import_export.h>
#include <proton/types.h>

Go to the source code of this file.

Classes

struct  pn_raw_buffer_t
 A descriptor used to represent a single raw buffer in memory. More...
 

Functions

PNP_EXTERN pn_raw_connection_tpn_raw_connection (void)
 Create a new raw connection for use with the Proactor. More...
 
PNP_EXTERN const struct pn_netaddr_tpn_raw_connection_local_addr (pn_raw_connection_t *connection)
 Get the local address of a raw connection. More...
 
PNP_EXTERN const struct pn_netaddr_tpn_raw_connection_remote_addr (pn_raw_connection_t *connection)
 Get the local address of a raw connection. More...
 
PNP_EXTERN void pn_raw_connection_close (pn_raw_connection_t *connection)
 Close a raw connection. More...
 
PNP_EXTERN void pn_raw_connection_read_close (pn_raw_connection_t *connection)
 Shutdown a raw connection for reading. More...
 
PNP_EXTERN void pn_raw_connection_write_close (pn_raw_connection_t *connection)
 Shutdown a raw connection for writing. More...
 
PNP_EXTERN size_t pn_raw_connection_read_buffers_capacity (pn_raw_connection_t *connection)
 Query the raw connection for how many more read buffers it can be given.
 
PNP_EXTERN size_t pn_raw_connection_write_buffers_capacity (pn_raw_connection_t *connection)
 Query the raw connection for how many more write buffers it can be given.
 
PNP_EXTERN size_t pn_raw_connection_give_read_buffers (pn_raw_connection_t *connection, pn_raw_buffer_t const *buffers, size_t num)
 Give the raw connection buffers to use for reading from the underlying socket. More...
 
PNP_EXTERN size_t pn_raw_connection_take_read_buffers (pn_raw_connection_t *connection, pn_raw_buffer_t *buffers, size_t num)
 Fetch buffers with bytes read from the raw socket. More...
 
PNP_EXTERN size_t pn_raw_connection_write_buffers (pn_raw_connection_t *connection, pn_raw_buffer_t const *buffers, size_t num)
 Give the raw connection buffers to write to the underlying socket. More...
 
PNP_EXTERN size_t pn_raw_connection_take_written_buffers (pn_raw_connection_t *connection, pn_raw_buffer_t *buffers, size_t num)
 Return a buffer chain with buffers that have all been written to the raw socket. More...
 
PNP_EXTERN bool pn_raw_connection_is_read_closed (pn_raw_connection_t *connection)
 Is connection closed for read? More...
 
PNP_EXTERN bool pn_raw_connection_is_write_closed (pn_raw_connection_t *connection)
 Is connection closed for write? More...
 
PNP_EXTERN void pn_raw_connection_wake (pn_raw_connection_t *connection)
 Return a PN_RAW_CONNECTION_WAKE event for connection as soon as possible. More...
 
PNP_EXTERN pn_condition_tpn_raw_connection_condition (pn_raw_connection_t *connection)
 Get additional information about a raw connection error. More...
 
PNP_EXTERN void * pn_raw_connection_get_context (pn_raw_connection_t *connection)
 Get the application context associated with this raw connection. More...
 
PNP_EXTERN void pn_raw_connection_set_context (pn_raw_connection_t *connection, void *context)
 Set a new application context for a raw connection. More...
 
PNP_EXTERN pn_record_t * pn_raw_connection_attachments (pn_raw_connection_t *connection)
 Get the attachments that are associated with a raw connection.
 
PNP_EXTERN pn_raw_connection_tpn_event_raw_connection (pn_event_t *event)
 Return the raw connection associated with an event. More...