1#ifndef PROTON_SESSION_H
2#define PROTON_SESSION_H 1
25#include <proton/import_export.h>
26#include <proton/type_compat.h>
uint32_t pn_frame_count_t
A count or limit of AMQP transfer frames.
Definition types.h:149
struct pn_condition_t pn_condition_t
An AMQP Condition object.
Definition condition.h:65
struct pn_connection_t pn_connection_t
An AMQP Connection object.
Definition types.h:300
int pn_state_t
Holds the state flags for an AMQP endpoint.
Definition types.h:286
struct pn_error_t pn_error_t
An int error code and some string text to describe the error.
Definition error.h:45
pn_condition_t * pn_session_remote_condition(pn_session_t *session)
Get the remote condition associated with the session endpoint.
void pn_session_free(pn_session_t *session)
Free a session object.
void pn_session_close(pn_session_t *session)
Close a session.
size_t pn_session_get_incoming_capacity(pn_session_t *session)
Deprecated - Use pn_session_incoming_window().
pn_connection_t * pn_session_connection(pn_session_t *session)
Get the parent connection for a session object.
pn_session_t * pn_session_head(pn_connection_t *connection, pn_state_t state)
Retrieve the first session from a given connection that matches the specified state mask.
void pn_session_open(pn_session_t *session)
Open a session.
pn_record_t * pn_session_attachments(pn_session_t *session)
Get the attachments that are associated with a session object.
void pn_session_set_context(pn_session_t *session, void *context)
Set a new application context for a session object.
struct pn_session_t pn_session_t
An AMQP Session object.
Definition types.h:311
size_t pn_session_incoming_bytes(pn_session_t *session)
Get the number of incoming bytes currently buffered by a session.
pn_session_t * pn_session_next(pn_session_t *session, pn_state_t state)
Retrieve the next session from a given connection that matches the specified state mask.
pn_frame_count_t pn_session_incoming_window(pn_session_t *session)
Get the maximum incoming window window for a session object.
pn_condition_t * pn_session_condition(pn_session_t *session)
Get the local condition associated with the session endpoint.
int pn_session_set_incoming_window_and_lwm(pn_session_t *session, pn_frame_count_t window, pn_frame_count_t lwm)
Set the maximum incoming window and low water mark for a session object.
pn_state_t pn_session_state(pn_session_t *session)
Get the endpoint state flags for a session.
pn_frame_count_t pn_session_remote_incoming_window(pn_session_t *session)
Get the remote view of the incoming window for the session.
size_t pn_session_get_outgoing_window(pn_session_t *session)
Get the outgoing window for a session object.
void * pn_session_get_context(pn_session_t *session)
Get the application context that is associated with a session object.
pn_frame_count_t pn_session_incoming_window_lwm(pn_session_t *session)
Get the low water mark for the session incoming window.
size_t pn_session_outgoing_bytes(pn_session_t *session)
Get the number of outgoing bytes currently buffered by a session.
void pn_session_set_outgoing_window(pn_session_t *session, size_t window)
Set the outgoing window for a session object.
pn_error_t * pn_session_error(pn_session_t *session)
Deprecated - Use pn_session_condition().
void pn_session_set_incoming_capacity(pn_session_t *session, size_t capacity)
Deprecated - Use pn_session_set_incoming_window_and_lwm().
pn_session_t * pn_session(pn_connection_t *connection)
Factory for creating a new session on a given connection object.
struct pn_record_t pn_record_t
A type representing attached context information.
Definition types.h:492