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

Function tls_read_callback

libavformat/tls_libtls.c:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static ssize_t tls_read_callback(struct tls *ctx, void *buf, size_t buflen, void *cb_arg)
51{
52 URLContext *h = (URLContext*) cb_arg;
53 int ret = ffurl_read(h, buf, buflen);
54 if (ret == AVERROR(EAGAIN))
55 return TLS_WANT_POLLIN;
56 else if (ret == AVERROR_EXIT)
57 return 0;
58 return ret >= 0 ? ret : -1;
59}
60
61static ssize_t tls_write_callback(struct tls *ctx, const void *buf, size_t buflen, void *cb_arg)
62{

Callers

nothing calls this directly

Calls 1

ffurl_readFunction · 0.85

Tested by

no test coverage detected