libavformat/http.c File Reference

#include "libavutil/base64.h"
#include "libavutil/avstring.h"
#include "avformat.h"
#include <unistd.h>
#include "network.h"
#include "os_support.h"

Go to the source code of this file.

Data Structures

struct  HTTPContext

Defines

#define BUFFER_SIZE   1024
#define URL_SIZE   4096
#define MAX_REDIRECTS   8

Functions

static int http_connect (URLContext *h, const char *path, const char *hoststr, const char *auth, int *new_location)
static int http_write (URLContext *h, uint8_t *buf, int size)
static int http_open_cnx (URLContext *h)
static int http_open (URLContext *h, const char *uri, int flags)
static int http_getc (HTTPContext *s)
static int process_line (URLContext *h, char *line, int line_count, int *new_location)
static int http_read (URLContext *h, uint8_t *buf, int size)
static int http_close (URLContext *h)
static int64_t http_seek (URLContext *h, int64_t off, int whence)

Variables

URLProtocol http_protocol


Define Documentation

#define BUFFER_SIZE   1024

Definition at line 35 of file http.c.

#define MAX_REDIRECTS   8

Definition at line 37 of file http.c.

Referenced by http_open_cnx().

#define URL_SIZE   4096

Definition at line 36 of file http.c.

Referenced by http_open().


Function Documentation

static int http_close ( URLContext h  )  [static]

Definition at line 311 of file http.c.

static int http_connect ( URLContext h,
const char *  path,
const char *  hoststr,
const char *  auth,
int *  new_location 
) [static]

Definition at line 208 of file http.c.

Referenced by http_open_cnx().

static int http_getc ( HTTPContext s  )  [static]

Definition at line 137 of file http.c.

Referenced by http_connect().

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

Definition at line 116 of file http.c.

static int http_open_cnx ( URLContext h  )  [static]

Definition at line 54 of file http.c.

Referenced by http_open(), and http_seek().

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

Definition at line 284 of file http.c.

static int64_t http_seek ( URLContext h,
int64_t  off,
int  whence 
) [static]

Definition at line 319 of file http.c.

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

Definition at line 305 of file http.c.

Referenced by http_connect().

static int process_line ( URLContext h,
char *  line,
int  line_count,
int *  new_location 
) [static]

Definition at line 154 of file http.c.

Referenced by http_connect().


Variable Documentation

Initial value:

Definition at line 348 of file http.c.


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