2-105
DSOM Framework Reference
is_proxy Method
Purpose
Tests to see if the object reference is a proxy.
IDL Syntax
boolean is_proxy( );
Description
The is_proxy method tests to see if the specified object reference is a proxy object.
Parameters
receiver A pointer to a SOMDObject object.
env A pointer to the Environment structure for the method caller.
Return Value
The is_proxy method returns TRUE if the object reference is a proxy object. Otherwise,
is_proxy returns FALSE.
Example
#include <somd.h>
SOMDObject objref;
Environment ev;
Context ctx;
NVlist arglist;
NamedValue result;
Request reqObj;
...
if (_is_proxy(objref, &ev)) {
/* create a remote request for target object */
...
rc = _create_request(obj, &ev, ctx,
”testMethod”, arglist, &result, &reqObj,
(Flags)0);
}
...
Original Class
SOMDObject
Related Information
Methods: is_nil, is_constant, is_SOM_ref, string_to_object
Komentarze do niniejszej Instrukcji