[FFmpeg-devel] Simple HTTP Server API Implementation

Stephan Holljes klaxa1337 at googlemail.com
Sat Aug 1 01:41:40 CEST 2015

The following changes since commit 5870b3d2a3afdae0ed42fa9fd010684ee18feca8:

  MAINTAINERS: update my maintership (2015-07-31 20:25:07 +0200)

are available in the git repository at:

  http://git.klaxa.eu/git/ffmpeg simple_http_server_api_implementation

for you to fetch changes up to 25410c524ddee98c579c7a9ddaf0535278a6dae0:

  doc/example: Add http multi-client example code (2015-08-01 00:58:32 +0200)

(from the branch description for simple_http_server_api_implementation
local branch)

This patchset splits ff_listen_bind into ff_listen and ff_accept
to support handling more than one client, while still maintaining
compatibility to the existing API. The *_handshake-group of
functions are the communication function between libavformat and
the application using it. The client can set and get variables via
the AVOption system.
Basic implementations for tcp and http have been added.
Sample code for multi-client usage is included in the doc/examples

Stephan Holljes (8):
      lavf/network: split ff_listen_bind into ff_listen and ff_accept
      lavf/avio: add ffurl_accept and ffurl_handshake
      lavf/avio: add avio_accept and avio_handshake
      lavf/tcp: add tcp_accept
      lavf/tcp: increase range for listen and call the underlying
socket operations accordingly
      lavf/http: Implement server side network code.
      doc/protocols: document experimental mutli-client api
      doc/example: Add http multi-client example code

 doc/examples/Makefile           |   1 +
 doc/examples/http_multiclient.c | 155
 doc/protocols.texi              |   2 ++
 libavformat/avio.c              |  20 +++++++++++
 libavformat/avio.h              |  29 +++++++++++++++
 libavformat/aviobuf.c           |  17 +++++++++
 libavformat/http.c              | 182
 libavformat/network.c           |  27 ++++++++++----
 libavformat/network.h           |  20 +++++++++++
 libavformat/tcp.c               |  33 ++++++++++++++---
 libavformat/url.h               |  25 +++++++++++++
 11 files changed, 476 insertions(+), 35 deletions(-)
 create mode 100644 doc/examples/http_multiclient.c

More information about the ffmpeg-devel mailing list