<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><div>hi,i am using live555 (testRTSPClient) inside my program to get frame from camera. sometime network connection may lost i want to resume capturing frame from camera.</div><div><br></div><div>is 60000 millisecond good for timeout?</div><div>beacause my network has some failure rapidly on some time and if they occur in one 600000 millisecond then the number of session to camera may be more than that it can be respond;</div><div><br></div><div>i am using the code below for resetting connection.is it work?</div><div><br></div><div>Boolean DummySink::continuePlaying() {</div><div>envir().taskScheduler().unscheduleDelayedTask(watch_dog_timer_token);</div><div>if (fSource == NULL) return False;</div><div>// sanity check (should not happen)// Request the next frame of data from our input source. "afterGettingFrame() " will get called later, when it arrives:</div><div>fSource->getNextFrame(fReceiveBuffer, DUMMY_SINK_RECEIVE_BUFFER_SIZE,afterGettingFrame, this,onSourceClosure, this);</div><div>int64_t millesecond = 60000;</div><div>int64_t microsecond_watch_dog_timer = 1000 * millesecond;watch_dog_timer_token = envir().taskScheduler().scheduleDelayedTask(microsecond_watch_dog_timer,(TaskFunc*)(DummySink::watch_dog_timer),this);</div><div>return True;</div><div>}</div><div>void DmmySink::watch_dog_timer(void* clientData)</div><div>{</div><div> DummySink* dummy_sink = (DummySink*)clientData;MyEnv * _env = dynamic_cast<MyEnv*(&dummy_sink->envir());</div><div>shutdownStream(_env->_client);</div><div> //access the client to be shutdown// shutdownStream(void *clientData,int exitcode = 0)<br></div><div>eventLoopWatchvariableVariable = -1;</div><div>}</div><div><br></div><div>Najmeh Eghbal,</div><div>Assistant Professor,</div><div>Department of Electrical EngineeringSadjad University of Technology</div></div></div></body></html>