libavformat/http.c File Reference

#include "libavutil/avstring.h"
#include "avformat.h"
#include <unistd.h>
#include <strings.h>
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "httpauth.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 http_get_line (HTTPContext *s, char *line, int line_size)
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)
static int http_get_file_handle (URLContext *h)

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 387 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 249 of file http.c.

Referenced by http_open_cnx().

static int http_get_file_handle ( URLContext h  )  [static]

Definition at line 441 of file http.c.

static int http_get_line ( HTTPContext s,
char *  line,
int  line_size 
) [static]

Definition at line 163 of file http.c.

Referenced by http_connect(), and http_read().

static int http_getc ( HTTPContext s  )  [static]

Definition at line 146 of file http.c.

Referenced by http_get_line().

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

Definition at line 123 of file http.c.

static int http_open_cnx ( URLContext h  )  [static]

Definition at line 56 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 316 of file http.c.

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

Definition at line 404 of file http.c.

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

Definition at line 361 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 187 of file http.c.

Referenced by http_connect().


Variable Documentation

Initial value:

 {
    "http",
    http_open,
    http_read,
    http_write,
    http_seek,
    http_close,
    .url_get_file_handle = http_get_file_handle,
}

Definition at line 447 of file http.c.


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