[Live-devel] Reliable UDP -- does it make sense?

Pannaman, Jonathan Jonathan.Pannaman at espn.com
Mon Oct 26 22:48:14 PDT 2009


The doGetNextFrame does not block, it returns but does not get called again after that. Should afterGetting be called when no data is available? with a value of zero for the numbers of bytes in fTo?

.

________________________________
From: live-devel-bounces at ns.live555.com
To: LIVE555 Streaming Media - development & use
Sent: Tue Oct 27 00:24:56 2009
Subject: Re: [Live-devel] Reliable UDP -- does it make sense?

also the eventloop stops if doGetNextFrame gets no data

This is wrong.  Your "doGetNextFrame()" implementation should never block.  If no data is immediately available, then it should just return (immediately, without blocking).  The later arrival of data should (somehow) get handled as an event within the event loop.  (The event handler might just end up calling "doGetNextFrame()" again - and this time it'll succeed in getting data and delivering it to the downstream object.)

But in general, only you can debug your own new code.

--


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

________________________________
Please consider the environment before printing this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20091026/148c8096/attachment.html>


More information about the live-devel mailing list