a580e12000-09-27Fredrik Hübinette (Hubbe) #pike __REAL_VERSION__
a20af62000-09-26Fredrik Hübinette (Hubbe) 
aa94471997-09-16David Kågedal  #include "remote.h"
64f6bd2000-05-16Martin Stjernholm constant is_remote_obj = 1;
aa94471997-09-16David Kågedal string id; object con; object ctx; mapping calls = ([ ]); mixed get_function(string f) { object call = calls[f]; if (!call)
c655561997-09-23David Kågedal  call = calls[f] = Call(id, f, con, ctx, 0);
aa94471997-09-16David Kågedal  return call; } mixed `[] (string f) { return get_function(f); } mixed `-> (string f) { return get_function(f); }
f2a84d2000-10-05Martin Stjernholm int exists() { mixed data = ctx->encode_call(id, 0, ({}), CTX_EXISTS); return con->call_sync(data); }
aa94471997-09-16David Kågedal void create(string i, object cn, object ct) { id = i; con = cn; ctx = ct; }