public Ping ( bool silent = true, bool retry = false ) : Task |
||
silent | bool | |
retry | bool | |
return | Task |
public async Task<bool> Ping(bool silent = true, bool retry = false)
{
if (idle) await NoIdle();
var qId = await Send(MPDKeyWords.Send.Encode( MPDKeyWords.Client.Connection.PING ), silent, retry, true);
return ((await Response(qId)).Equals(MPDKeyWords.Response.OK_LINEBREAK))
? true
: false;
}