Libav
Data Structures | Functions | Variables
tcp.c File Reference
#include "avformat.h"
#include "libavutil/parseutils.h"
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "url.h"

Go to the source code of this file.

Data Structures

struct  TCPContext
 

Functions

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_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)
 

Variables

URLProtocol ff_tcp_protocol
 

Function Documentation

static int tcp_open ( URLContext h,
const char *  uri,
int  flags 
)
static

Definition at line 36 of file tcp.c.

static int tcp_read ( URLContext h,
uint8_t buf,
int  size 
)
static

Definition at line 133 of file tcp.c.

static int tcp_write ( URLContext h,
const uint8_t buf,
int  size 
)
static

Definition at line 147 of file tcp.c.

static int tcp_shutdown ( URLContext h,
int  flags 
)
static

Definition at line 161 of file tcp.c.

static int tcp_close ( URLContext h)
static

Definition at line 177 of file tcp.c.

static int tcp_get_file_handle ( URLContext h)
static

Definition at line 184 of file tcp.c.

Variable Documentation

URLProtocol ff_tcp_protocol
Initial value:
= {
.name = "tcp",
.url_open = tcp_open,
.url_read = tcp_read,
.url_write = tcp_write,
.url_close = tcp_close,
.url_get_file_handle = tcp_get_file_handle,
.url_shutdown = tcp_shutdown,
.priv_data_size = sizeof(TCPContext),
}
#define URL_PROTOCOL_FLAG_NETWORK
Definition: url.h:35
static int tcp_open(URLContext *h, const char *uri, int flags)
Definition: tcp.c:36
static int flags
Definition: log.c:44
static int tcp_read(URLContext *h, uint8_t *buf, int size)
Definition: tcp.c:133
static int tcp_close(URLContext *h)
Definition: tcp.c:177
static int tcp_shutdown(URLContext *h, int flags)
Definition: tcp.c:161
Definition: tcp.c:31
static int tcp_write(URLContext *h, const uint8_t *buf, int size)
Definition: tcp.c:147
static int tcp_get_file_handle(URLContext *h)
Definition: tcp.c:184

Definition at line 190 of file tcp.c.