Go to the source code of this file.
◆ OFFSET
Definition at line 47 of file tcp.c.
Definition at line 48 of file tcp.c.
Definition at line 49 of file tcp.c.
◆ tcp_open()
Definition at line 68 of file tcp.c.
◆ tcp_accept()
◆ tcp_read()
◆ tcp_write()
◆ tcp_shutdown()
◆ tcp_close()
◆ tcp_get_file_handle()
◆ tcp_get_window_size()
◆ options
Initial value:= {
{
"listen",
"Listen for incoming connections",
OFFSET(listen),
AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 2, .flags =
D|
E },
{
"timeout",
"set timeout (in microseconds) of socket I/O operations",
OFFSET(rw_timeout),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, .flags =
D|
E },
{
"listen_timeout",
"Connection awaiting timeout (in milliseconds)",
OFFSET(listen_timeout),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, .flags =
D|
E },
{
"send_buffer_size",
"Socket send buffer size (in bytes)",
OFFSET(send_buffer_size),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, .flags =
D|
E },
{
"recv_buffer_size",
"Socket receive buffer size (in bytes)",
OFFSET(recv_buffer_size),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, .flags =
D|
E },
{
"tcp_nodelay",
"Use TCP_NODELAY to disable nagle's algorithm",
OFFSET(tcp_nodelay),
AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, .flags =
D|
E },
}
Definition at line 50 of file tcp.c.
◆ tcp_class
Initial value:= {
.class_name = "tcp",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
static const AVOption options[]
Definition at line 60 of file tcp.c.
◆ ff_tcp_protocol
Initial value:= {
.name = "tcp",
}
#define URL_PROTOCOL_FLAG_NETWORK
static const AVClass tcp_class
static int tcp_open(URLContext *h, const char *uri, int flags)
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_get_window_size(URLContext *h)
static int tcp_write(URLContext *h, const uint8_t *buf, int size)
static int tcp_get_file_handle(URLContext *h)
static int tcp_accept(URLContext *s, URLContext **c)
Definition at line 296 of file tcp.c.