Module: Miu::RPC::Helpers

Included in:
Client::Evaluator, Server
Defined in:
lib/miu/rpc/helpers.rb

Instance Method Summary collapse

Instance Method Details

#read_parts(socket) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/miu/rpc/helpers.rb', line 4

def read_parts(socket)
  values = []
  loop do
    values << socket.read
    break unless socket.more_parts?
  end
  values
end