NPRPC docs

class ReferenceList

C++

class ReferenceList

The servants a session holds references to. Released together when the session ends, so a client that disconnects without releasing its references does not keep transient objects alive.

include/nprpc/session_context.h:30

Constructors

ReferenceList() noexcept

An empty list.

include/nprpc/session_context.h:43

Methods

void add_ref(ObjectServant *obj)

Records a reference to obj and adds one to its count. Ignored for a servant already in the list.

include/nprpc/session_context.h:37

bool remove_ref(poa_idx_t poa_idx, oid_t oid)

Drops the reference to the servant oid in POA poa_idx. Returns false if the session held none.

include/nprpc/session_context.h:40