NPRPC docs

interface Nameserver

IDL

interface Nameserver

A process-wide directory of objects by name, served by npnameserver.

A server binds the objects it wants to publish; clients resolve them by name instead of passing object references around by hand.

idl/nprpc_nameserver.npidl:10

Methods

void Bind(obj: object, name: string)

Publishes obj under name, replacing whatever was bound there. The nameserver holds a reference, so the object stays alive while bound.

obj in
The object to publish.
name in
Lookup key.

idl/nprpc_nameserver.npidl:13

boolean Resolve(name: string, obj: out object)

Looks up the object bound under name. Returns false, leaving obj invalid, if nothing is bound there.

name in
Lookup key.
obj out
Receives the bound object.

idl/nprpc_nameserver.npidl:21