# File lib/librmpd.rb, line 405 def connected? return false if @socket.nil? begin ret = send_command 'ping' rescue ret = false end return ret end