Module: VLC::Client::ConnectionManagement

Included in:
VLC::Client
Defined in:
lib/vlc-client/client/connection_management.rb

Instance Method Summary collapse

Instance Method Details

#connectObject

Connects to VLC RC interface on Client#host and Client#port


5
6
7
# File 'lib/vlc-client/client/connection_management.rb', line 5

def connect
  connection.connect
end

#connected?Boolean

Queries if there is an active connection to VLC RC interface

Returns:

  • (Boolean)

15
16
17
# File 'lib/vlc-client/client/connection_management.rb', line 15

def connected?
  connection.connected?
end

#disconnectObject

Disconnects from VLC RC interface


10
11
12
# File 'lib/vlc-client/client/connection_management.rb', line 10

def disconnect
  connection.disconnect
end

#disconnected?Boolean

Returns:

  • (Boolean)

19
20
21
# File 'lib/vlc-client/client/connection_management.rb', line 19

def disconnected?
  not(connected?)
end