summaryrefslogtreecommitdiffstats
path: root/lib/iotas/door.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/iotas/door.rb')
-rw-r--r--lib/iotas/door.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/iotas/door.rb b/lib/iotas/door.rb
index d2466d0..de6b5a0 100644
--- a/lib/iotas/door.rb
+++ b/lib/iotas/door.rb
@@ -72,14 +72,16 @@ module Iotas
@spin.release_p p
end
#
- def send_p p
+ def send_p p, a=nil
p.init! self
+ p.set_dst! a, self if a
@saved=nil if @saved==p # particle is sent back the data, all is good
@parent.send_p p # daddy will know what to do
end
#
- def send_sys_p p
+ def send_sys_p p, a=nil
p.init! self
+ p.set_dst! a, self if a
@saved=nil if @saved==p # particle is sent back the data, all is good
@parent.send_sys_p p # daddy will know what to do
end