pike.git
/
lib
/
modules
/
Remote.pmod
/
call.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Remote.pmod/call.pike:1:
#include "remote.h" string objectid; string name; object con; object ctx;
-
int
is
_async;
+
int _async;
mixed `() (mixed ... args) {
-
mixed data = ctx->encode_call(objectid, name, args,
is
_async);
-
if (
is
_async)
+
mixed data = ctx->encode_call(objectid, name, args, _async);
+
if (_async)
con->call_async(data); else return con->call_sync(data); return 0; } mixed sync(mixed ... args) {
-
mixed data = ctx->encode_call(objectid, name, args,
is
_async);
+
mixed data = ctx->encode_call(objectid, name, args, _async);
return con->call_sync(data); } void async(mixed ... args) {
-
mixed data = ctx->encode_call(objectid, name, args,
is
_async);
+
mixed data = ctx->encode_call(objectid, name, args, _async);
con->call_async(data); }
-
+
int is_async()
+
{
+
return _async;
+
}
+
+
void set_async(int a)
+
{
+
_async = a;
+
}
+
void create(string oid, string n, object cn, object ct, int a) { objectid = oid; name = n; con = cn; ctx = ct;
-
is
_async = a;
+
_async = a;
}