Example #1
0
 public XMLRPCCallWrapper(string function_name, XMLRPCFunc func, XmlRpcServer server)
 {
     name        = function_name;
     this.server = server;
     __instance  = create(function_name, server.instance);
     AddRef(__instance);
     SegFault();
     FUNC = func;
 }
 public XmlRpcServerMethod(string function_name, XMLRPCFunc func, XmlRpcServer server)
 {
     name = function_name;
     this.server = server;
     //SegFault();
     FUNC = func;
     if (server != null)
         server.AddMethod(this);
 }
 public XmlRpcServerMethod(string function_name, XMLRPCFunc func, XmlRpcServer server)
 {
     name        = function_name;
     this.server = server;
     //SegFault();
     FUNC = func;
     if (server != null)
     {
         server.AddMethod(this);
     }
 }
Example #4
0
        public XmlRpcManager()
        {
            XmlRpcUtil.SetLogLevel(
#if !DEBUG
                XmlRpcUtil.XMLRPC_LOG_LEVEL.ERROR
#else
#if TRACE
                XmlRpcUtil.XMLRPC_LOG_LEVEL.INFO
#else
                XmlRpcUtil.XMLRPC_LOG_LEVEL.WARNING
#endif
#endif
                );
            server = new XmlRpcServer();
            getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
        }
Example #5
0
        public XmlRpcManager()
        {
            XmlRpcUtil.SetLogLevel(
#if !DEBUG
                    XmlRpcUtil.XMLRPC_LOG_LEVEL.ERROR
#else
#if TRACE
                    XmlRpcUtil.XMLRPC_LOG_LEVEL.INFO
#else
                    XmlRpcUtil.XMLRPC_LOG_LEVEL.WARNING
#endif
#endif
);

            server = new XmlRpcServer();
            getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
        }
Example #6
0
 public bool bind(string function_name, XMLRPCFunc cb)
 {
     lock (functions_mutex)
     {
         if (functions.ContainsKey(function_name))
         {
             return(false);
         }
         functions.Add(function_name,
                       new FunctionInfo
         {
             name     = function_name,
             function = cb,
             wrapper  = new XmlRpcServerMethod(function_name, cb, server)
         });
     }
     return(true);
 }
 public void SetFunc(XMLRPCFunc func)
 {
     _FUNC = func;
 }
Example #8
0
 public XmlRpcManager()
 {
     XmlRpcUtil.ShowOutputFromXmlRpcPInvoke(XmlRpcUtil.XMLRPC_LOG_LEVEL.NOTHING);
     server = new XmlRpcServer();
     getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
 }
Example #9
0
 public void SetFunc(XMLRPCFunc func)
 {
     SegFault();
     setfunc(instance, func);
 }
Example #10
0
 public XmlRpcManager(Master_API.ROSMasterHandler _handler = null)
 {
     handler = _handler;
     server = new XmlRpcServer();
     getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
 }
Example #11
0
 public XmlRpcManager()
 {
     XmlRpcUtil.ShowOutputFromXmlRpcPInvoke(XmlRpcUtil.XMLRPC_LOG_LEVEL.NOTHING);
     server = new XmlRpcServer();
     getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
 }
Example #12
0
 public XMLRPCCallWrapper(string function_name, XMLRPCFunc func, XmlRpcServer server)
 {
     name = function_name;
     this.server = server;
     __instance = create(function_name, server.instance);
     AddRef(__instance);
     SegFault();
     FUNC = func;
 }
Example #13
0
 public bool bind(string function_name, XMLRPCFunc cb)
 {
     lock (functions_mutex)
     {
         if (functions.ContainsKey(function_name))
             return false;
         functions.Add(function_name,
             new FunctionInfo
             {
                 name = function_name,
                 function = cb,
                 wrapper = new XMLRPCCallWrapper(function_name, cb, server)
             });
     }
     return true;
 }
Example #14
0
 public XmlRpcManager()
 {
     //XmlRpcUtil.ShowOutputFromXmlRpcPInvoke();
     server = new XmlRpcServer();
     getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
 }
Example #15
0
 public void SetFunc(XMLRPCFunc func)
 {
     SegFault();
     setfunc(instance, func);
 }
Example #16
0
 public XmlRpcManager()
 {
     //XmlRpcUtil.ShowOutputFromXmlRpcPInvoke();
     server = new XmlRpcServer();
     getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
 }
Example #17
0
 private static extern void setfunc(IntPtr target, [MarshalAs(UnmanagedType.FunctionPtr)] XMLRPCFunc cb);
 public void SetFunc(XMLRPCFunc func)
 {
     _FUNC = func;
 }
Example #19
0
 public XmlRpcManager(Master_API.ROSMasterHandler _handler = null)
 {
     handler = _handler;
     server  = new XmlRpcServer();
     getPid  = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
 }