lib/serfx/connection.rb
# read data from the tcp socket. and convert it to a [Response] object
#
# @param command [String] RPC command name for which response will be read
# @return [Response]
read data from the tcp socket. and convert it to a [Response] object
read data from the tcp socket . and convert it to a [ Response ] object
def read_response(command)
      header =  read_data
      check_rpc_error!(header)
      if COMMANDS[command].include?(:body)
        body = read_data
        Response.new(header, body)
      else
        Response.new(header)
      end
    end
def read_response ( command ) header = read_data check_rpc_error! ( header ) if COMMANDS [ command ] . include? ( :body ) body = read_data Response . new ( header , body ) else Response . new ( header ) end end
read data from the tcp socket.
read data from the tcp socket .
None
Response
command
RPC command name for which response will be read
RPC command name for which response will be read