1 #ifndef PROTON_CONNECTION_H
2 #define PROTON_CONNECTION_H 1
33 #include <sys/types.h>
52 #define PN_LOCAL_UNINIT (1)
56 #define PN_LOCAL_ACTIVE (2)
60 #define PN_LOCAL_CLOSED (4)
64 #define PN_REMOTE_UNINIT (8)
68 #define PN_REMOTE_ACTIVE (16)
72 #define PN_REMOTE_CLOSED (32)
78 #define PN_LOCAL_MASK (PN_LOCAL_UNINIT | PN_LOCAL_ACTIVE | PN_LOCAL_CLOSED)
84 #define PN_REMOTE_MASK (PN_REMOTE_UNINIT | PN_REMOTE_ACTIVE | PN_REMOTE_CLOSED)
PN_EXTERN pn_data_t * pn_connection_remote_offered_capabilities(pn_connection_t *connection)
Access the AMQP offered capabilites supplied by the remote connection endpoint.
struct pn_error_t pn_error_t
Definition: error.h:32
PN_EXTERN pn_data_t * pn_connection_remote_desired_capabilities(pn_connection_t *connection)
Access the AMQP desired capabilites supplied by the remote connection endpoint.
PN_EXTERN void pn_connection_free(pn_connection_t *connection)
Free a connection object.
PN_EXTERN pn_data_t * pn_connection_remote_properties(pn_connection_t *connection)
Access the AMQP connection properties supplied by the remote connection endpoint. ...
PN_EXTERN void pn_connection_open(pn_connection_t *connection)
Open a connection.
The Condition API for the proton Engine.
struct pn_collector_t pn_collector_t
An event collector.
Definition: types.h:243
PN_EXTERN pn_condition_t * pn_connection_remote_condition(pn_connection_t *connection)
Get the remote condition associated with the connection endpoint.
#define PN_EXTERN
Definition: import_export.h:53
PN_EXTERN void * pn_connection_get_context(pn_connection_t *connection)
Get the application context that is associated with a connection object.
struct pn_data_t pn_data_t
Definition: codec.h:92
PN_EXTERN pn_transport_t * pn_connection_transport(pn_connection_t *connection)
Get the transport bound to a connection object.
PN_EXTERN void pn_connection_close(pn_connection_t *connection)
Close a connection.
PN_EXTERN pn_state_t pn_connection_state(pn_connection_t *connection)
Get the endpoint state flags for a connection.
PN_EXTERN const char * pn_connection_get_container(pn_connection_t *connection)
Get the AMQP Container name advertised by a connection object.
PN_EXTERN const char * pn_connection_remote_hostname(pn_connection_t *connection)
Get the AMQP Hostname set by the remote connection endpoint.
PN_EXTERN void pn_connection_set_context(pn_connection_t *connection, void *context)
Set a new application context for a connection object.
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.
struct pn_condition_t pn_condition_t
An AMQP Condition object.
Definition: condition.h:65
PN_EXTERN pn_data_t * pn_connection_desired_capabilities(pn_connection_t *connection)
Access/modify the AMQP desired capabilities data for a connection object.
PN_EXTERN void pn_connection_reset(pn_connection_t *connection)
Reset a connection object back to the uninitialized state.
PN_EXTERN void pn_connection_set_container(pn_connection_t *connection, const char *container)
Set the AMQP Container name advertised by a connection object.
PN_EXTERN pn_data_t * pn_connection_offered_capabilities(pn_connection_t *connection)
Access/modify the AMQP offered capabilities data for a connection object.
PN_EXTERN pn_error_t * pn_connection_error(pn_connection_t *connection)
Get additional error information associated with the connection.
struct pn_connection_t pn_connection_t
An AMQP Connection object.
Definition: types.h:111
PN_EXTERN pn_data_t * pn_connection_properties(pn_connection_t *connection)
Access/modify the AMQP properties data for a connection object.
int pn_state_t
Holds the state flags for an AMQP endpoint.
Definition: types.h:96
PN_EXTERN const char * pn_connection_get_hostname(pn_connection_t *connection)
Get the value of the AMQP Hostname used by a connection object.
PN_EXTERN void pn_connection_collect(pn_connection_t *connection, pn_collector_t *collector)
Associate a connection object with an event collector.
PN_EXTERN pn_condition_t * pn_connection_condition(pn_connection_t *connection)
Get the local condition associated with the connection endpoint.
PN_EXTERN const char * pn_connection_remote_container(pn_connection_t *connection)
Get the AMQP Container name advertised by the remote connection endpoint.
PN_EXTERN pn_connection_t * pn_connection(void)
Factory to construct a new Connection.
struct pn_transport_t pn_transport_t
An AMQP Transport object.
Definition: types.h:255