[Live-devel] Select delay in BasicTaskScheduler::SingleStep

Ross Finlayson finlayson at live555.com
Thu Oct 27 12:31:29 PDT 2005


>Thanks for replying. The socket doesn't have any data because I have
>stopped transmitting, which is why I'm trying to stop the event loop.

The proper way to exit an event loop is by setting its 'watch 
variable' to some non-zero value.  See 
<http://www.live555.com/liveMedia/faq.html#exiting-event-loop>.  If 
you do this, the loop will exit once you leave the current event 
handler (i.e., the event handler that you're currently 
executing).  See the implementation of "BasicTaskScheduler0::doEventLoop()".

>Having stopped receiving from the first source, I want to start
>receiving from another source which will send to the same port as the
>previous one. Is it possible to receive from different sources on a
>single port as long as they are at different times?

Yes.  However, you will need to destroy (using "Medium::close()") the 
first source, before you attempt to create a new source that uses the 
same port.


	Ross Finlayson
	Live Networks, Inc. (LIVE555.COM)
	<http://www.live555.com/>



More information about the live-devel mailing list