Go to the source code of this file.
|
static int | customize_fd (void *ctx, int fd, int family) |
|
static int | tcp_open (URLContext *h, const char *uri, int flags) |
|
static int | tcp_accept (URLContext *s, URLContext **c) |
|
static int | tcp_read (URLContext *h, uint8_t *buf, int size) |
|
static int | tcp_write (URLContext *h, const uint8_t *buf, int size) |
|
static int | tcp_shutdown (URLContext *h, int flags) |
|
static int | tcp_close (URLContext *h) |
|
static int | tcp_get_file_handle (URLContext *h) |
|
static int | tcp_get_window_size (URLContext *h) |
|
◆ OFFSET
Definition at line 52 of file tcp.c.
Definition at line 53 of file tcp.c.
Definition at line 54 of file tcp.c.
◆ customize_fd()
static int customize_fd |
( |
void * |
ctx, |
|
|
int |
fd, |
|
|
int |
family |
|
) |
| |
|
static |
◆ tcp_open()
static int tcp_open |
( |
URLContext * |
h, |
|
|
const char * |
uri, |
|
|
int |
flags |
|
) |
| |
|
static |
◆ tcp_accept()
◆ tcp_read()
static int tcp_read |
( |
URLContext * |
h, |
|
|
uint8_t * |
buf, |
|
|
int |
size |
|
) |
| |
|
static |
◆ tcp_write()
static int tcp_write |
( |
URLContext * |
h, |
|
|
const uint8_t * |
buf, |
|
|
int |
size |
|
) |
| |
|
static |
◆ tcp_shutdown()
static int tcp_shutdown |
( |
URLContext * |
h, |
|
|
int |
flags |
|
) |
| |
|
static |
◆ 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 },
{
"tcp_mss",
"Maximum segment size for outgoing TCP packets",
OFFSET(tcp_mss),
AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, .flags =
D|
E },
}
Definition at line 55 of file tcp.c.
◆ tcp_class
Initial value:= {
.class_name = "tcp",
}
Definition at line 70 of file tcp.c.
◆ ff_tcp_protocol
Initial value:
Definition at line 365 of file tcp.c.