[FFmpeg-devel] Controlling the server reply (was: 9/9] doc/example: Add http multi-client) example code

Stephan Holljes klaxa1337 at googlemail.com
Tue Jul 21 05:45:13 CEST 2015


I will send the latest version of my patchset as git send-email messages.
The major changes are:
- Introduction of constants to distinguish the types of client the
library is dealing with. (HTTP_ONESHOT, HTTP_MULTI, HTTP_MULTI_CLIENT)
- Usage of the AVOption system for communication during handshake
- http_handshake() implemented to allow multiple round-trips between
application and library.

> [...]
> > +    cc = (*c)->priv_data;
> > +    if ((ret = ffurl_accept(sl, &cl)) < 0)
> > +        goto fail;
>
> > +    cc->hd = cl;
>
> Does it make sense to set "cc->listen = 1" here, to indicate that the client
> is not yet a normal client? It may make the tests for trailers simpler.

It makes sense to set cc->listen here, since it indicates to the
library that it has to send server-responses. However, it does not
seem to make tests for trailers simpler, or I am not seeing it.


Regards,
Stephan


More information about the ffmpeg-devel mailing list