MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / tls_write_callback

Function tls_write_callback

libavformat/tls_libtls.c:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static ssize_t tls_write_callback(struct tls *ctx, const void *buf, size_t buflen, void *cb_arg)
62{
63 URLContext *h = (URLContext*) cb_arg;
64 int ret = ffurl_write(h, buf, buflen);
65 if (ret == AVERROR(EAGAIN))
66 return TLS_WANT_POLLOUT;
67 else if (ret == AVERROR_EXIT)
68 return 0;
69 return ret >= 0 ? ret : -1;
70}
71
72static int ff_tls_open(URLContext *h, const char *uri, int flags, AVDictionary **options)
73{

Callers

nothing calls this directly

Calls 1

ffurl_writeFunction · 0.85

Tested by

no test coverage detected