9#ifndef _b21e4f11_9337_4612_8152_b59dedc16f18
10#define _b21e4f11_9337_4612_8152_b59dedc16f18
29 std::function<AssociationParameters(AssociationParameters
const &)>
49 unsigned char result,
unsigned char source,
unsigned char reason,
50 std::string
const & message=
"Association rejected");
70 unsigned char _result;
71 unsigned char _source;
72 unsigned char _reason;
Encapsulate association parameters.
Definition AssociationParameters.h:27
Base class for odil exceptions.
Definition Exception.h:22
Definition Association.h:25
AssociationParameters default_association_acceptor(AssociationParameters const &input)
Default association acceptor.
std::function< AssociationParameters(AssociationParameters const &)> AssociationAcceptor
Callback to check whether the association request is acceptable.
Definition AssociationAcceptor.h:30
#define ODIL_API
Definition odil.h:28
Exception reported when an incoming association is rejected.
Definition AssociationAcceptor.h:45
void set_reason(unsigned char value)
Set the rejection reason.
unsigned char get_result() const
Return the rejection result.
AssociationRejected(unsigned char result, unsigned char source, unsigned char reason, std::string const &message="Association rejected")
Constructor.
void set_result(unsigned char value)
Set the rejection result.
unsigned char get_reason() const
Return the rejection reason.
unsigned char get_source() const
Return the rejection source.
void set_source(unsigned char value)
Set the rejection source.