module Plug::UnixDomain
Attributes
mute[RW]
peers[RW]
Public Class Methods
new()
click to toggle source
# File lib/rbkb/plug/unix_domain.rb, line 35 def initialize @peers = PeerStub.new(self) end
Public Instance Methods
name()
click to toggle source
# File lib/rbkb/plug/unix_domain.rb, line 39 def name "a domain socket" end
receive_data(dat)
click to toggle source
# File lib/rbkb/plug/unix_domain.rb, line 43 def receive_data(dat) puts "Got:", dat.hexdump end
say(dat, sender)
click to toggle source
# File lib/rbkb/plug/unix_domain.rb, line 47 def say(dat, sender) UI.dump(sender.name, self.name, dat) send_data(dat) end