libavformat/tcp.c File Reference

#include "avformat.h"
#include <unistd.h>
#include "internal.h"
#include "network.h"
#include "os_support.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_wait_fd (int fd, int write)
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 170 of file tcp.c.

static int tcp_get_file_handle ( URLContext h  )  [static]

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

static int tcp_wait_fd ( int  fd,
int  write 
) [static]

Definition at line 132 of file tcp.c.

Referenced by tcp_read(), and tcp_write().

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

Definition at line 156 of file tcp.c.


Variable Documentation

Initial value:

 {
    "tcp",
    tcp_open,
    tcp_read,
    tcp_write,
    NULL, 
    tcp_close,
    .url_get_file_handle = tcp_get_file_handle,
}

Definition at line 184 of file tcp.c.


Generated on Mon May 2 19:50:28 2011 for FFmpeg by  doxygen 1.5.6