#include "avformat.h"
#include "libavutil/parseutils.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "url.h"
Go to the source code of this file.
Definition at line 42 of file tcp.c.
Definition at line 43 of file tcp.c.
Definition at line 44 of file tcp.c.
static int tcp_open |
( |
URLContext * |
h, |
|
|
const char * |
uri, |
|
|
int |
flags |
|
) |
| |
|
static |
Definition at line 60 of file tcp.c.
static int tcp_shutdown |
( |
URLContext * |
h, |
|
|
int |
flags |
|
) |
| |
|
static |
Initial value:= {
{
"timeout",
"timeout of socket i/o operations",
OFFSET(rw_timeout),
AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX,
D|
E },
{
"listen_timeout",
"connection awaiting timeout",
OFFSET(listen_timeout),
AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX,
D|
E },
{NULL}
}
Definition at line 45 of file tcp.c.
Initial value:= {
.class_name = "tcp",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ctx)
Return the context name.
const OptionDef options[]
Definition at line 52 of file tcp.c.
Initial value:= {
.name = "tcp",
}
#define URL_PROTOCOL_FLAG_NETWORK
static int tcp_open(URLContext *h, const char *uri, int flags)
static const AVClass tcp_context_class
static int tcp_read(URLContext *h, uint8_t *buf, int size)
static int tcp_close(URLContext *h)
static int tcp_shutdown(URLContext *h, int flags)
static int tcp_write(URLContext *h, const uint8_t *buf, int size)
static int tcp_get_file_handle(URLContext *h)
Definition at line 217 of file tcp.c.