Module: ZMQMachine::Server::RoutingEnvelope

Included in:
XREP, XREQ
Defined in:
lib/zm/server/routing_envelope.rb

Instance Method Summary collapse

Instance Method Details

#routing_stringsObject



20
21
22
# File 'lib/zm/server/routing_envelope.rb', line 20

def routing_strings
  @routing_strings.dup
end

#save_routing(messages) ⇒ Object

Saves the return routing information for XREP sockets



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/zm/server/routing_envelope.rb', line 8

def save_routing messages
  @routing_messages = []
  @routing_strings = []
  messages.each do |message|
    string = message.copy_out_string
    @routing_strings << string
    @routing_messages << ZMQ::Message.new(string)
  end

  @routing_messages
end