Roxen.git / server / etc / modules / RoxenRPC.pmod / Client.pike

version» Context lines:

Roxen.git/server/etc/modules/RoxenRPC.pmod/Client.pike:1:   /* -  * $Id: Client.pike,v 1.16 2008/05/12 13:31:04 mast Exp $ +  * $Id$    */      #define CHECK_IO_ERROR(FD, OP) do { \    if (int err = (FD)->errno()) \    error ("Error " OP " to %O: %s\n", (FD), strerror (err)); \    } while (0)      class RemoteFunctionCall   {    object server;
Roxen.git/server/etc/modules/RoxenRPC.pmod/Client.pike:74:    error("server->subtract_refs("+cl+") failed\n");    }    }   }         string myclass;   object server = Stdio.File();      int nolock = 0; - #if efun(thread_create) +    object lock = Thread.Mutex(); - #else - class fake_mutex - { -  mixed lock() -  { -  return 0; -  } - }; - object lock = fake_mutex(); - #endif +       mixed `->(string id)   {    return RemoteFunctionCall(id, myclass, server, lock->lock, this_object())->call;   }      void create(string|object ip, int port, string cl,    int|string|void lck, void|string key, int|void not_again)   {    if(stringp(lck))