unregisterSubscriber() 공개 메소드

public unregisterSubscriber ( String caller_id, String topic, String caller_api ) : int
caller_id String
topic String
caller_api String
리턴 int
예제 #1
0
파일: Master.cs 프로젝트: wiwing/ROS.NET
        /// <summary>
        /// Unregister an existing subscriber
        /// </summary>
        /// <param name="parms"></param>
        /// <param name="result"></param>
        public XmlRpcValue unregisterSubscriber(String caller_id, String topic, String caller_api)
        {
            XmlRpcValue res = new XmlRpcValue();
            int         ret = handler.unregisterSubscriber(caller_id, topic, caller_api);

            res.Set(0, ret);
            res.Set(1, "unregistered " + caller_id + "as provder of " + topic);
            return(res);
        }
예제 #2
0
        /// <summary>
        /// Unregister an existing subscriber
        /// </summary>
        /// <param name="parms"></param>
        /// <param name="result"></param>
        public void unregisterSubscriber([In][Out] IntPtr parms, [In][Out] IntPtr result)
        {
            XmlRpcValue res = XmlRpcValue.Create(ref result), parm = XmlRpcValue.Create(ref parms);

            String caller_id  = parm[0].GetString();
            String topic      = parm[1].GetString();
            String caller_api = parm[2].GetString();

            Console.WriteLine("UNSUBSCRIBING: " + caller_id + " : " + caller_api);

            int ret = handler.unregisterSubscriber(caller_id, topic, caller_api);

            res.Set(0, ret);
            res.Set(1, "unregistered " + caller_id + "as provder of " + topic);

            //throw new Exception("NOT IMPLEMENTED YET!");
            //XmlRpcValue args = new XmlRpcValue(this_node.Name, topic, XmlRpcManager.Instance.uri),
            //            result = new XmlRpcValue(),
            //            payload = new XmlRpcValue();
            //master.execute("unregisterSubscriber", args, ref result, ref payload, false);
            //return true;
        }