Module: VLC::Client::ConnectionManagement
- Included in:
- VLC::Client
- Defined in:
- lib/vlc-client/client/connection_management.rb
Instance Method Summary collapse
-
#connect ⇒ Object
Connects to VLC RC interface on Client#host and Client#port.
-
#connected? ⇒ Boolean
Queries if there is an active connection to VLC RC interface.
-
#disconnect ⇒ Object
Disconnects from VLC RC interface.
- #disconnected? ⇒ Boolean
Instance Method Details
#connect ⇒ Object
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
15 16 17 |
# File 'lib/vlc-client/client/connection_management.rb', line 15 def connected? connection.connected? end |
#disconnect ⇒ Object
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
19 20 21 |
# File 'lib/vlc-client/client/connection_management.rb', line 19 def disconnected? not(connected?) end |