-
Notifications
You must be signed in to change notification settings - Fork 2
/
server_client_example.tscn
62 lines (45 loc) · 2.41 KB
/
server_client_example.tscn
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[gd_scene load_steps=14 format=3 uid="uid://c7u64tpv6byvb"]
[ext_resource type="Script" path="res://demo/dbus_server_example.gd" id="1_jyovi"]
[ext_resource type="Script" path="res://demo/dbus_client_example.gd" id="2_ik254"]
[ext_resource type="Script" path="res://demo/dbus_client_node_example.gd" id="3_pfkpg"]
[sub_resource type="DBusMethodArgument" id="DBusMethodArgument_7xm51"]
[sub_resource type="DBusMethodArgument" id="DBusMethodArgument_fdtwg"]
[sub_resource type="DBusMethodArgument" id="DBusMethodArgument_1va1p"]
[sub_resource type="DBusMethod" id="DBusMethod_pftgm"]
member = "Multiply"
signature = Array[DBusMethodArgument]([SubResource("DBusMethodArgument_fdtwg"), SubResource("DBusMethodArgument_1va1p")])
result = Array[DBusMethodArgument]([SubResource("DBusMethodArgument_7xm51")])
[sub_resource type="DBusMethodArgument" id="DBusMethodArgument_ejhsr"]
type = 1
[sub_resource type="DBusMethod" id="DBusMethod_1nn3q"]
member = "empty"
result = Array[DBusMethodArgument]([SubResource("DBusMethodArgument_ejhsr")])
[sub_resource type="DBusMethodArgument" id="DBusMethodArgument_rishs"]
type = 3
[sub_resource type="DBusMethodArgument" id="DBusMethodArgument_hrxsp"]
[sub_resource type="DBusMethodArgument" id="DBusMethodArgument_ap402"]
[sub_resource type="DBusMethod" id="DBusMethod_02o38"]
member = "Divide"
signature = Array[DBusMethodArgument]([SubResource("DBusMethodArgument_hrxsp"), SubResource("DBusMethodArgument_ap402")])
result = Array[DBusMethodArgument]([SubResource("DBusMethodArgument_rishs")])
[node name="Scene" type="Node"]
[node name="DBusServer" type="DBusServerNode" parent="."]
object_path = "/net/poettering/Calculator"
interface_name = "net.poettering.Calculator"
methods = [SubResource("DBusMethod_pftgm"), SubResource("DBusMethod_1nn3q"), SubResource("DBusMethod_02o38")]
autostart = true
script = ExtResource("1_jyovi")
[node name="DBusClient" type="Node" parent="."]
script = ExtResource("2_ik254")
[node name="Timer" type="Timer" parent="."]
one_shot = true
autostart = true
[node name="DBusClientNode" type="DBusClientNode" parent="."]
destination = "net.poettering.Calculator"
path = "/net/poettering/Calculator"
interface = "net.poettering.Calculator"
autostart = false
use_threads = true
script = ExtResource("3_pfkpg")
[connection signal="timeout" from="Timer" to="DBusClient" method="_on_timer_timeout"]
[connection signal="timeout" from="Timer" to="DBusClientNode" method="_on_timer_timeout"]