summaryrefslogtreecommitdiff
path: root/grc/blocks/xmlrpc_client.xml
blob: dc4d154d14001643ef6e3c13c0fd536a2e35dd6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0"?>
<!--
###################################################
##Simple XMLRPC Client
###################################################
 -->
<block>
	<name>XMLRPC Client</name>
	<key>xmlrpc_client</key>
	<import>import xmlrpclib</import>
	<make>xmlrpclib.Server('http://$(addr()):$(port)')</make>
	<callback>$(callback())($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>