void qd_policy_deny_amqp_session(pn_session_t *ssn, qd_connection_t *qd_conn) { pn_condition_t * cond = pn_session_condition(ssn); (void) pn_condition_set_name( cond, RESOURCE_LIMIT_EXCEEDED); (void) pn_condition_set_description(cond, SESSION_DISALLOWED); pn_session_close(ssn); qd_conn->policy_settings->denialCounts->sessionDenied++; }
condition session::local_condition() const { return condition(pn_session_condition(pn_object())); }
void session::close(const error_condition& condition) { set_error_condition(condition, pn_session_condition(pn_object())); close(); }