proton  0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
connection.h File Reference

Connection API for the proton Engine. More...

#include <proton/import_export.h>
#include <proton/type_compat.h>
#include <stddef.h>
#include <sys/types.h>

Go to the source code of this file.

Macros

#define PN_LOCAL_UNINIT   (1)
 The local endpoint state is uninitialized. More...
 
#define PN_LOCAL_ACTIVE   (2)
 The local endpoint state is active. More...
 
#define PN_LOCAL_CLOSED   (4)
 The local endpoint state is closed. More...
 
#define PN_REMOTE_UNINIT   (8)
 The remote endpoint state is uninitialized. More...
 
#define PN_REMOTE_ACTIVE   (16)
 The remote endpoint state is active. More...
 
#define PN_REMOTE_CLOSED   (32)
 The remote endpoint state is closed. More...
 
#define PN_LOCAL_MASK   (PN_LOCAL_UNINIT | PN_LOCAL_ACTIVE | PN_LOCAL_CLOSED)
 A mask for values of pn_state_t that preserves only the local bits of an endpoint's state. More...
 
#define PN_REMOTE_MASK   (PN_REMOTE_UNINIT | PN_REMOTE_ACTIVE | PN_REMOTE_CLOSED)
 A mask for values of pn_state_t that preserves only the remote bits of an endpoint's state. More...
 

Functions

PN_EXTERN pn_connection_tpn_connection (void)
 Factory to construct a new Connection. More...
 
PN_EXTERN void pn_connection_free (pn_connection_t *connection)
 Free a connection object. More...
 
PN_EXTERN pn_error_tpn_connection_error (pn_connection_t *connection)
 Get additional error information associated with the connection. More...
 
PN_EXTERN void pn_connection_collect (pn_connection_t *connection, pn_collector_t *collector)
 Associate a connection object with an event collector. More...
 
PN_EXTERN void * pn_connection_get_context (pn_connection_t *connection)
 Get the application context that is associated with a connection object. More...
 
PN_EXTERN void pn_connection_set_context (pn_connection_t *connection, void *context)
 Set a new application context for a connection object. More...
 
PN_EXTERN pn_state_t pn_connection_state (pn_connection_t *connection)
 Get the endpoint state flags for a connection. More...
 
PN_EXTERN void pn_connection_open (pn_connection_t *connection)
 Open a connection. More...
 
PN_EXTERN void pn_connection_close (pn_connection_t *connection)
 Close a connection. More...
 
PN_EXTERN void pn_connection_reset (pn_connection_t *connection)
 Reset a connection object back to the uninitialized state. More...
 
PN_EXTERN pn_condition_tpn_connection_condition (pn_connection_t *connection)
 Get the local condition associated with the connection endpoint. More...
 
PN_EXTERN pn_condition_tpn_connection_remote_condition (pn_connection_t *connection)
 Get the remote condition associated with the connection endpoint. More...
 
PN_EXTERN const char * pn_connection_get_container (pn_connection_t *connection)
 Get the AMQP Container name advertised by a connection object. More...
 
PN_EXTERN void pn_connection_set_container (pn_connection_t *connection, const char *container)
 Set the AMQP Container name advertised by a connection object. More...
 
PN_EXTERN const char * pn_connection_get_hostname (pn_connection_t *connection)
 Get the value of the AMQP Hostname used by a connection object. More...
 
PN_EXTERN void pn_connection_set_hostname (pn_connection_t *connection, const char *hostname)
 Set the value of the AMQP Hostname used by a connection object. More...
 
PN_EXTERN const char * pn_connection_remote_container (pn_connection_t *connection)
 Get the AMQP Container name advertised by the remote connection endpoint. More...
 
PN_EXTERN const char * pn_connection_remote_hostname (pn_connection_t *connection)
 Get the AMQP Hostname set by the remote connection endpoint. More...
 
PN_EXTERN pn_data_tpn_connection_offered_capabilities (pn_connection_t *connection)
 Access/modify the AMQP offered capabilities data for a connection object. More...
 
PN_EXTERN pn_data_tpn_connection_desired_capabilities (pn_connection_t *connection)
 Access/modify the AMQP desired capabilities data for a connection object. More...
 
PN_EXTERN pn_data_tpn_connection_properties (pn_connection_t *connection)
 Access/modify the AMQP properties data for a connection object. More...
 
PN_EXTERN pn_data_tpn_connection_remote_offered_capabilities (pn_connection_t *connection)
 Access the AMQP offered capabilites supplied by the remote connection endpoint. More...
 
PN_EXTERN pn_data_tpn_connection_remote_desired_capabilities (pn_connection_t *connection)
 Access the AMQP desired capabilites supplied by the remote connection endpoint. More...
 
PN_EXTERN pn_data_tpn_connection_remote_properties (pn_connection_t *connection)
 Access the AMQP connection properties supplied by the remote connection endpoint. More...
 
PN_EXTERN pn_transport_tpn_connection_transport (pn_connection_t *connection)
 Get the transport bound to a connection object. More...
 

Detailed Description

Connection API for the proton Engine.