24 id_(std::move(sessionId)),
25 context_(sessionContext) {}
UA_QualifiedName wrapper class.
High-level session class to manage client sessions.
Session(Server &connection, NodeId sessionId, void *sessionContext) noexcept
void setSessionAttribute(const QualifiedName &key, const Variant &value)
Attach a session attribute as a key-value pair.
const NodeId & id() const noexcept
Get the session identifier.
void * context() noexcept
Get the session context.
const Server & connection() const noexcept
Get the server instance.
Variant getSessionAttribute(const QualifiedName &key)
Get a session attribute by its key.
Server & connection() noexcept
Get the server instance.
bool operator!=(const Session &lhs, const Session &rhs) noexcept
void close()
Manually close this session.
void deleteSessionAttribute(const QualifiedName &key)
Delete a session attribute by its key.
bool operator==(const Session &lhs, const Session &rhs) noexcept
const void * context() const noexcept
Get the session context.
UA_Variant wrapper class.