result = ''
      code = 0
      sock.put("#{data}")
      result = sock.get_once
      result.chomp! if (result)