MPD connection handling.
More...
◆ mympd_client_connect()
Connects to mpd and sets initial connection settings
- Parameters
-
| partition_state | pointer to partition state |
- Returns
- true on success, else false
◆ mympd_client_disconnect()
Disconnects from MPD, sends a notification and execute triggers
- Parameters
-
| partition_state | pointer to partition state |
◆ mympd_client_disconnect_all()
| void mympd_client_disconnect_all |
( |
struct t_mympd_state * |
mympd_state | ) |
|
Disconnects all MPD partitions
- Parameters
-
| mympd_state | pointer to central myMPD state |
◆ mympd_client_disconnect_silent()
Disconnects from MPD silently
- Parameters
-
| partition_state | pointer to partition state |
◆ mympd_client_set_connection_options()
| bool mympd_client_set_connection_options |
( |
struct t_partition_state * |
partition_state | ) |
|
Sets mpd connection settings and features
- Parameters
-
| partition_state | pointer to partition state |
- Returns
- true on success, else false
◆ mympd_client_set_keepalive()
Sets the tcp keepalive
- Parameters
-
| partition_state | pointer to partition state |
- Returns
- true on success, else false
◆ mympd_client_set_protocol_options()
| static bool mympd_client_set_protocol_options |
( |
struct t_partition_state * |
partition_state | ) |
|
|
static |
Sets mpd connection options binarylimit and protocol features
- Parameters
-
| partition_state | pointer to partition state |
- Returns
- true on success, else false
◆ mympd_client_set_timeout()
Sets the mpd timeout
- Parameters
-
| partition_state | pointer to partition state |
- Returns
- true on success, else false