mirror of
https://github.com/lloeki/normandy.git
synced 2025-12-06 10:04:39 +01:00
WIP
This commit is contained in:
parent
0cdf0a490a
commit
06273c3525
11 changed files with 208 additions and 29 deletions
|
|
@ -3,10 +3,13 @@
|
|||
require 'channel'
|
||||
|
||||
def ping(pings, msg)
|
||||
pings = pings.send_only!
|
||||
pings << msg
|
||||
end
|
||||
|
||||
def pong(pings, pongs)
|
||||
pings = pings.receive_only!
|
||||
pongs = pongs.send_only!
|
||||
msg = pings.recv
|
||||
pongs << msg
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue