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

static int tcp_get_file_handle ( URLContext h  )  [static]

Definition at line 208 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 157 of file tcp.c.

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

Definition at line 185 of file tcp.c.

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

Definition at line 171 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 214 of file tcp.c.


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