summaryrefslogtreecommitdiff
path: root/libmpd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'libmpd.rb')
-rw-r--r--libmpd.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpd.rb b/libmpd.rb
index 7f6448d..00b5c16 100644
--- a/libmpd.rb
+++ b/libmpd.rb
@@ -44,13 +44,13 @@ class MPD
@port = port
end
- # Connect to the server.
+ # Connects to the server.
def connect
- # Connect to MPD and return response.
@socket = TCPSocket.new @host, @port
return @socket.gets.chomp
end
+ # Sends a command to the server and returns the response.
def send_request command
# Escape backslashes in command.
@socket.puts command.gsub('\\', '\\\\\\')