commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r8487 - in grc/trunk/src/grc_gnuradio: blocks/misc dat


From: jblum
Subject: [Commit-gnuradio] r8487 - in grc/trunk/src/grc_gnuradio: blocks/misc data
Date: Sun, 25 May 2008 13:17:55 -0600 (MDT)

Author: jblum
Date: 2008-05-25 13:17:53 -0600 (Sun, 25 May 2008)
New Revision: 8487

Added:
   grc/trunk/src/grc_gnuradio/blocks/misc/xmlrpc_client.xml
Modified:
   grc/trunk/src/grc_gnuradio/data/block_tree.xml
Log:
xmlrpc client too

Added: grc/trunk/src/grc_gnuradio/blocks/misc/xmlrpc_client.xml
===================================================================
--- grc/trunk/src/grc_gnuradio/blocks/misc/xmlrpc_client.xml                    
        (rev 0)
+++ grc/trunk/src/grc_gnuradio/blocks/misc/xmlrpc_client.xml    2008-05-25 
19:17:53 UTC (rev 8487)
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!DOCTYPE block SYSTEM "../block.dtd">
+<!-- 
+###################################################
+##Simple XMLRPC Client
+###################################################
+ -->
+<block>
+       <name>XMLRPC Client</name>
+       <key>xmlrpc_client</key>
+       <import>import xmlrpclib</import>
+       <make>xmlrpclib.Server(&quot;http://$(addr.eval):$(port)&quot;)</make>
+       <callback>$(callback.eval)($variable)</callback>
+       <param>
+               <name>Address</name>
+               <key>addr</key>
+               <value>localhost</value>
+               <type>string</type>             
+       </param>
+       <param>
+               <name>Port</name>
+               <key>port</key>
+               <value>8080</value>
+               <type>int</type>
+       </param>
+       <param>
+               <name>Callback</name>
+               <key>callback</key>
+               <value>set_</value>
+               <type>string</type>
+       </param>
+       <param>
+               <name>Variable</name>
+               <key>variable</key>
+               <type>raw</type>
+       </param>
+       <doc>
+This block will create an XMLRPC client. \
+The client will execute the callback on the server when the variable is 
changed. \
+The callback should be a the name of a function registered on the server. \
+The variable should be an expression containing a the name of a variable in 
flow graph.
+       </doc>
+</block>

Modified: grc/trunk/src/grc_gnuradio/data/block_tree.xml
===================================================================
--- grc/trunk/src/grc_gnuradio/data/block_tree.xml      2008-05-25 18:42:45 UTC 
(rev 8486)
+++ grc/trunk/src/grc_gnuradio/data/block_tree.xml      2008-05-25 19:17:53 UTC 
(rev 8487)
@@ -256,5 +256,6 @@
                <block>hier_block</block>
                
                <block>xmlrpc_server</block>
+               <block>xmlrpc_client</block>
        </cat>
 </block_tree>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]