Imported Upstream version 3.2.2
[debian/gnuradio] / grc / blocks / xmlrpc_client.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Simple XMLRPC Client
5 ###################################################
6  -->
7 <block>
8         <name>XMLRPC Client</name>
9         <key>xmlrpc_client</key>
10         <import>import xmlrpclib</import>
11         <make>xmlrpclib.Server('http://$(addr()):$(port)')</make>
12         <callback>$(callback())($variable)</callback>
13         <param>
14                 <name>Address</name>
15                 <key>addr</key>
16                 <value>localhost</value>
17                 <type>string</type>
18         </param>
19         <param>
20                 <name>Port</name>
21                 <key>port</key>
22                 <value>8080</value>
23                 <type>int</type>
24         </param>
25         <param>
26                 <name>Callback</name>
27                 <key>callback</key>
28                 <value>set_</value>
29                 <type>string</type>
30         </param>
31         <param>
32                 <name>Variable</name>
33                 <key>variable</key>
34                 <type>raw</type>
35         </param>
36         <doc>
37 This block will create an XMLRPC client. \
38 The client will execute the callback on the server when the variable is changed. \
39 The callback should be a the name of a function registered on the server. \
40 The variable should be an expression containing a the name of a variable in flow graph.
41         </doc>
42 </block>