libavformat/tcp.c File Reference

#include "avformat.h"
#include "libavutil/parseutils.h"
#include <unistd.h>
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "url.h"
#include <sys/time.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_close (URLContext *h)
static int tcp_get_file_handle (URLContext *h)

Variables

URLProtocol ff_tcp_protocol


Function Documentation

static int tcp_close ( URLContext h  )  [static]

Definition at line 186 of file tcp.c.

static int tcp_get_file_handle ( URLContext h  )  [static]

Definition at line 193 of file tcp.c.

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

Definition at line 38 of file tcp.c.

static int tcp_read ( URLContext h,
uint8_t *  buf,
int  size 
) [static]

Definition at line 158 of file tcp.c.

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

Definition at line 172 of file tcp.c.


Variable Documentation

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,
    .priv_data_size      = sizeof(TCPContext),
}

Definition at line 199 of file tcp.c.


Generated on Fri Oct 26 02:43:53 2012 for FFmpeg by  doxygen 1.5.8