NPRPC docs

function get_context

C++

SessionContext &get_context()

The session of the call being dispatched on this thread. Only valid inside a servant method; throws Exception elsewhere.

include/nprpc/session_context.h:78