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

Session 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.

Functions

PN_EXTERN pn_session_tpn_session (pn_connection_t *connection)
 Factory for creating a new session on a given connection object. More...
 
PN_EXTERN void pn_session_free (pn_session_t *session)
 Free a session object. More...
 
PN_EXTERN void * pn_session_get_context (pn_session_t *session)
 Get the application context that is associated with a session object. More...
 
PN_EXTERN void pn_session_set_context (pn_session_t *session, void *context)
 Set a new application context for a session object. More...
 
PN_EXTERN pn_state_t pn_session_state (pn_session_t *session)
 Get the endpoint state flags for a session. More...
 
PN_EXTERN pn_error_tpn_session_error (pn_session_t *session)
 Get additional error information associated with the session. More...
 
PN_EXTERN pn_condition_tpn_session_condition (pn_session_t *session)
 Get the local condition associated with the session endpoint. More...
 
PN_EXTERN pn_condition_tpn_session_remote_condition (pn_session_t *session)
 Get the remote condition associated with the session endpoint. More...
 
PN_EXTERN pn_connection_tpn_session_connection (pn_session_t *session)
 Get the parent connection for a session object. More...
 
PN_EXTERN void pn_session_open (pn_session_t *session)
 Open a session. More...
 
PN_EXTERN void pn_session_close (pn_session_t *session)
 Close a session. More...
 
PN_EXTERN size_t pn_session_get_incoming_capacity (pn_session_t *session)
 Get the incoming capacity of the session measured in bytes. More...
 
PN_EXTERN void pn_session_set_incoming_capacity (pn_session_t *session, size_t capacity)
 Set the incoming capacity for a session object. More...
 
PN_EXTERN size_t pn_session_outgoing_bytes (pn_session_t *session)
 Get the number of outgoing bytes currently buffered by a session. More...
 
PN_EXTERN size_t pn_session_incoming_bytes (pn_session_t *session)
 Get the number of incoming bytes currently buffered by a session. More...
 
PN_EXTERN pn_session_tpn_session_head (pn_connection_t *connection, pn_state_t state)
 Retrieve the first session from a given connection that matches the specified state mask. More...
 
PN_EXTERN pn_session_tpn_session_next (pn_session_t *session, pn_state_t state)
 Retrieve the next session from a given connection that matches the specified state mask. More...
 

Detailed Description

Session API for the proton Engine.