C AMQP Protocol Engine API  0.7
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
transport.h File Reference
#include <proton/import_export.h>
#include <proton/type_compat.h>
#include <stddef.h>
#include <sys/types.h>
Include dependency graph for transport.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PN_TRACE_OFF   (0)
 
#define PN_TRACE_RAW   (1)
 
#define PN_TRACE_FRM   (2)
 
#define PN_TRACE_DRV   (4)
 

Typedefs

typedef int pn_trace_t
 
typedef void(* pn_tracer_t )(pn_transport_t *transport, const char *message)
 

Functions

PN_EXTERN pn_transport_tpn_transport (void)
 
PN_EXTERN void pn_transport_free (pn_transport_t *transport)
 
PN_EXTERN pn_error_tpn_transport_error (pn_transport_t *transport)
 
PN_EXTERN int pn_transport_bind (pn_transport_t *transport, pn_connection_t *connection)
 
PN_EXTERN int pn_transport_unbind (pn_transport_t *transport)
 
PN_EXTERN void pn_transport_trace (pn_transport_t *transport, pn_trace_t trace)
 
PN_EXTERN void pn_transport_set_tracer (pn_transport_t *transport, pn_tracer_t tracer)
 
PN_EXTERN pn_tracer_t pn_transport_get_tracer (pn_transport_t *transport)
 
PN_EXTERN void * pn_transport_get_context (pn_transport_t *transport)
 
PN_EXTERN void pn_transport_set_context (pn_transport_t *transport, void *context)
 
PN_EXTERN void pn_transport_log (pn_transport_t *transport, const char *message)
 
PN_EXTERN void pn_transport_logf (pn_transport_t *transport, const char *fmt,...)
 
PN_EXTERN uint16_t pn_transport_get_channel_max (pn_transport_t *transport)
 
PN_EXTERN void pn_transport_set_channel_max (pn_transport_t *transport, uint16_t channel_max)
 
PN_EXTERN uint16_t pn_transport_remote_channel_max (pn_transport_t *transport)
 
PN_EXTERN uint32_t pn_transport_get_max_frame (pn_transport_t *transport)
 
PN_EXTERN void pn_transport_set_max_frame (pn_transport_t *transport, uint32_t size)
 
PN_EXTERN uint32_t pn_transport_get_remote_max_frame (pn_transport_t *transport)
 
PN_EXTERN pn_millis_t pn_transport_get_idle_timeout (pn_transport_t *transport)
 
PN_EXTERN void pn_transport_set_idle_timeout (pn_transport_t *transport, pn_millis_t timeout)
 
PN_EXTERN pn_millis_t pn_transport_get_remote_idle_timeout (pn_transport_t *transport)
 
PN_EXTERN ssize_t pn_transport_input (pn_transport_t *transport, const char *bytes, size_t available)
 
PN_EXTERN ssize_t pn_transport_output (pn_transport_t *transport, char *bytes, size_t size)
 
PN_EXTERN ssize_t pn_transport_capacity (pn_transport_t *transport)
 
PN_EXTERN char * pn_transport_tail (pn_transport_t *transport)
 
PN_EXTERN int pn_transport_push (pn_transport_t *transport, const char *src, size_t size)
 
PN_EXTERN int pn_transport_process (pn_transport_t *transport, size_t size)
 
PN_EXTERN int pn_transport_close_tail (pn_transport_t *transport)
 
PN_EXTERN ssize_t pn_transport_pending (pn_transport_t *transport)
 
PN_EXTERN const char * pn_transport_head (pn_transport_t *transport)
 
PN_EXTERN int pn_transport_peek (pn_transport_t *transport, char *dst, size_t size)
 
PN_EXTERN void pn_transport_pop (pn_transport_t *transport, size_t size)
 
PN_EXTERN int pn_transport_close_head (pn_transport_t *transport)
 
PN_EXTERN bool pn_transport_quiesced (pn_transport_t *transport)
 
PN_EXTERN bool pn_transport_closed (pn_transport_t *transport)
 
PN_EXTERN pn_timestamp_t pn_transport_tick (pn_transport_t *transport, pn_timestamp_t now)
 
PN_EXTERN uint64_t pn_transport_get_frames_output (const pn_transport_t *transport)
 
PN_EXTERN uint64_t pn_transport_get_frames_input (const pn_transport_t *transport)
 

Detailed Description

Transport API for the proton Engine.