curl-library
Re: RTSP async events (was: CURL_RTSPREQ_GET_PARAMETER timeout)
Date: Fri, 26 Mar 2010 09:55:02 -0400
On Wed, Mar 24, 2010 at 10:10 AM, Massimo Callegari
<massimocallegari_at_yahoo.it> wrote:
> Hello Christopher,
> the GET_PARAMETER patch you provided works like a charm ! Thank you !
>
> Now I've got another question regarding RTSP asynchronous events.
> How is it possible to receive async events like an ANNOUNCE with libcurl ?
> Usually these kind of messages are sent by the server to notify that
> something happened on the server side. An example could be the End Of
> Stream.
> Unfortunately if the client is not listening the event is not caught
> immediately when it occurs.
> Have you got any idea or suggestion on how I could achieve this ?
> I tried CURL_RTSPREQ_RECEIVE hoping to receive the async events, but I found
> out that it doesn't receive RTSP messages. (I think just only interleaved
> RTP)
>
> Would it be appropriate to implement a new method or to improve
> CURL_RTSPREQ_RECEIVE to address this goal ?
>
> Thanks again !
> Massimo
This is one of the items on the RTSP TODO list and is currently
unimplemented--partially because it will be somewhat tricky to
implement (being sure not to view a response as a request and
vice-versa), and also because I wasn't aware of any servers actually
making use of this feature.
CURL_RTSPREQ_RECEIVE would definitely need to be adjusted for this,
but we'd also have to take care not to treat the case of a server
sending async request while we are waiting for a response as the
response we are waiting for.
If you'd like to take a stab at it, I'm happy to assist if I can. I'm
also willing to give the code another look and see if I can't find a
decent way of doing it, but this is all in my free time now.
-- Chris Conroy ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-03-26