libavformat/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_close ( URLContext h  )  [static]

Definition at line 233 of file tcp.c.

static int tcp_get_file_handle ( URLContext h  )  [static]

Definition at line 240 of file tcp.c.

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 189 of file tcp.c.

static int tcp_shutdown ( URLContext h,
int  flags 
) [static]

Definition at line 217 of file tcp.c.

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

Definition at line 203 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,
    .url_shutdown        = tcp_shutdown,
    .priv_data_size      = sizeof(TCPContext),
    .flags               = URL_PROTOCOL_FLAG_NETWORK,
}

Definition at line 246 of file tcp.c.


Generated on Fri Oct 26 02:50:11 2012 for FFmpeg by  doxygen 1.5.8