Inheritance: IDisposable
 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 #2
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;
 }
 // The server delegates handling client requests to a serverConnection object.
 public XmlRpcServerConnection(Socket fd, XmlRpcServer server, bool deleteOnClose /*= false*/)
 //: base(fd, deleteOnClose)
 {
     XmlRpcUtil.log(XmlRpcUtil.XMLRPC_LOG_LEVEL.INFO, "XmlRpcServerConnection: new socket {0}.", fd.RemoteEndPoint.ToString());
     this.server      = server;
     socket           = fd;
     stream           = new NetworkStream(socket, true);
     _connectionState = ServerConnectionState.READ_HEADER;
     KeepOpen         = true;
     _keepAlive       = true;
 }
 // The server delegates handling client requests to a serverConnection object.
 public XmlRpcServerConnection(Socket fd, XmlRpcServer server, bool deleteOnClose /*= false*/)
     //: base(fd, deleteOnClose)
 {
     XmlRpcUtil.log(XmlRpcUtil.XMLRPC_LOG_LEVEL.INFO, "XmlRpcServerConnection: new socket {0}.", fd.RemoteEndPoint.ToString());
     this.server = server;
     socket = fd;
     stream = new NetworkStream(socket,true);
     _connectionState = ServerConnectionState.READ_HEADER;
     KeepOpen = true;
     _keepAlive = true;
 }
 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 #6
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 #7
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 #8
0
 public MethodHelp(XmlRpcServer s)
     : base(METHOD_HELP, null, s)
 {
     FUNC = execute;
 }
Example #9
0
 ListMethods(XmlRpcServer s)
     : base(LIST_METHODS, null, s)
 {
     FUNC = execute;
 }
Example #10
0
 public XmlRpcManager()
 {
     XmlRpcUtil.ShowOutputFromXmlRpcPInvoke(XmlRpcUtil.XMLRPC_LOG_LEVEL.NOTHING);
     server = new XmlRpcServer();
     getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
 }
Example #11
0
 public MethodHelp(XmlRpcServer s)
     : base(METHOD_HELP, null, s)
 {
     FUNC = execute;
 }
Example #12
0
     ListMethods(XmlRpcServer s)
     : base(LIST_METHODS, null, s)
 {
     FUNC = execute;
 }
Example #13
0
 public XmlRpcManager(Master_API.ROSMasterHandler _handler = null)
 {
     handler = _handler;
     server = new XmlRpcServer();
     getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
 }
Example #14
0
 public XmlRpcManager()
 {
     //XmlRpcUtil.ShowOutputFromXmlRpcPInvoke();
     server = new XmlRpcServer();
     getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
 }