diff options
Diffstat (limited to 'clientcontrol.c')
-rw-r--r-- | clientcontrol.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/clientcontrol.c b/clientcontrol.c index c3a3b05..f333725 100644 --- a/clientcontrol.c +++ b/clientcontrol.c @@ -214,7 +214,7 @@ bool cClientControl::SendPlayState(ePlayMode PlayMode, bool bPlay, bool bForward data.pakType = ptPlayState; data.dataLen = sizeof(state); - dsyslog("dataLen %d, dataSize %d", data.dataLen, sizeof(data)); + dsyslog("[ffnetdev] SendPlayState: PlayMode: %d, bPlay: %d, bForward: %d, iSpeed: %d", PlayMode, bPlay, bForward, iSpeed); if (m_Instance->m_ClientSocket->Write(&data, sizeof(data)) == sizeof(data)) { if (m_Instance->m_ClientSocket->Write(&state, sizeof(state)) == sizeof(state)) @@ -268,3 +268,21 @@ bool cClientControl::SendStillPicture(const uchar *Data, int Length) else return false; } + +bool cClientControl::SendSFreeze() +{ + SClientControl data; + int written, available, done; + + if ((m_Instance == NULL) || (m_Instance->m_ClientSocket == NULL)) + return false; + + data.pakType = ptFreeze; + data.dataLen = 0; + if (m_Instance->m_ClientSocket->Write(&data, sizeof(data)) == sizeof(data)) + { + return true; + } + else + return false; +} |