#include "avformat.h"
#include "libavutil/parseutils.h"
#include "libavutil/opt.h"
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "url.h"
Go to the source code of this file.
◆ OFFSET
Definition at line 41 of file tcp.c.
Definition at line 42 of file tcp.c.
Definition at line 43 of file tcp.c.
◆ tcp_open()
static int tcp_open |
( |
URLContext * |
h, |
|
|
const char * |
uri, |
|
|
int |
flags |
|
) |
| |
|
static |
Definition at line 59 of file tcp.c.
◆ tcp_read()
◆ tcp_write()
◆ tcp_shutdown()
static int tcp_shutdown |
( |
URLContext * |
h, |
|
|
int |
flags |
|
) |
| |
|
static |
◆ tcp_close()
◆ tcp_get_file_handle()
◆ options
Initial value:= {
{
"listen",
"Listen for incoming connections",
OFFSET(listen),
AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, .flags =
D|
E },
{
"timeout",
"Connection timeout (in milliseconds)",
OFFSET(timeout),
AV_OPT_TYPE_INT, { .i64 = 0 }, INT_MIN, INT_MAX, .flags =
D|
E },
{
"listen_timeout",
"Bind timeout (in milliseconds)",
OFFSET(listen_timeout),
AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX, .flags =
D|
E },
}
Definition at line 44 of file tcp.c.
◆ tcp_class
Initial value:= {
.class_name = "tcp",
}
static const AVOption options[]
Definition at line 51 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_write(URLContext *h, const uint8_t *buf, int size)
static int tcp_get_file_handle(URLContext *h)
Definition at line 215 of file tcp.c.