Class: Miu::Nodes::Sana::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/miu/nodes/sana/server.rb

Defined Under Namespace

Classes: Handler

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bind, port) ⇒ Server

Returns a new instance of Server.



16
17
18
# File 'lib/miu/nodes/sana/server.rb', line 16

def initialize(bind, port)
  @server = Miu::RPC::Server.new "tcp://#{bind}:#{port}", Handler.new
end

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



14
15
16
# File 'lib/miu/nodes/sana/server.rb', line 14

def server
  @server
end