Inheritance: IDisposable
コード例 #1
0
 public XmlRpcServerMethod(string function_name, XMLRPCFunc func, XmlRpcServer server)
 {
     name = function_name;
     this.server = server;
     //SegFault();
     FUNC = func;
     if (server != null)
         server.AddMethod(this);
 }
コード例 #2
0
ファイル: XMLRPCCallWrapper.cs プロジェクト: cephdon/ROS.NET
 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;
 }
コード例 #3
0
 // 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;
 }
コード例 #4
0
 // 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;
 }
コード例 #5
0
 public XmlRpcServerMethod(string function_name, XMLRPCFunc func, XmlRpcServer server)
 {
     name        = function_name;
     this.server = server;
     //SegFault();
     FUNC = func;
     if (server != null)
     {
         server.AddMethod(this);
     }
 }
コード例 #6
0
ファイル: XmlRpcManager.cs プロジェクト: uml-robotics/ROS.NET
        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);
        }
コード例 #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;
 }
コード例 #8
0
 public MethodHelp(XmlRpcServer s)
     : base(METHOD_HELP, null, s)
 {
     FUNC = execute;
 }
コード例 #9
0
 ListMethods(XmlRpcServer s)
     : base(LIST_METHODS, null, s)
 {
     FUNC = execute;
 }
コード例 #10
0
ファイル: XmlRpcManager.cs プロジェクト: rvlietstra/ROS.NET
 public XmlRpcManager()
 {
     XmlRpcUtil.ShowOutputFromXmlRpcPInvoke(XmlRpcUtil.XMLRPC_LOG_LEVEL.NOTHING);
     server = new XmlRpcServer();
     getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
 }
コード例 #11
0
ファイル: XmlRpcServer.cs プロジェクト: uml-robotics/ROS.NET
 public MethodHelp(XmlRpcServer s)
     : base(METHOD_HELP, null, s)
 {
     FUNC = execute;
 }
コード例 #12
0
ファイル: XmlRpcServer.cs プロジェクト: uml-robotics/ROS.NET
     ListMethods(XmlRpcServer s)
     : base(LIST_METHODS, null, s)
 {
     FUNC = execute;
 }
コード例 #13
0
ファイル: XmlRpcManager.cs プロジェクト: rvlietstra/ROS.NET
 public XmlRpcManager(Master_API.ROSMasterHandler _handler = null)
 {
     handler = _handler;
     server = new XmlRpcServer();
     getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
 }
コード例 #14
0
ファイル: XmlRpcManager.cs プロジェクト: christlurker/ROS.NET
 public XmlRpcManager()
 {
     //XmlRpcUtil.ShowOutputFromXmlRpcPInvoke();
     server = new XmlRpcServer();
     getPid = (parms, result) => responseInt(1, "", Process.GetCurrentProcess().Id)(result);
 }