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
Function Documentation
static int http_connect |
( |
URLContext * |
h, |
|
|
const char * |
path, |
|
|
const char * |
hoststr, |
|
|
const char * |
auth, |
|
|
int * |
new_location | |
|
) |
| | [static] |
static int http_get_file_handle |
( |
URLContext * |
h |
) |
[static] |
static int http_get_line |
( |
HTTPContext * |
s, |
|
|
char * |
line, |
|
|
int |
line_size | |
|
) |
| | [static] |
static int http_open |
( |
URLContext * |
h, |
|
|
const char * |
uri, |
|
|
int |
flags | |
|
) |
| | [static] |
static int http_open_cnx |
( |
URLContext * |
h |
) |
[static] |
static int http_read |
( |
URLContext * |
h, |
|
|
uint8_t * |
buf, |
|
|
int |
size | |
|
) |
| | [static] |
static int64_t http_seek |
( |
URLContext * |
h, |
|
|
int64_t |
off, |
|
|
int |
whence | |
|
) |
| | [static] |
static int http_write |
( |
URLContext * |
h, |
|
|
uint8_t * |
buf, |
|
|
int |
size | |
|
) |
| | [static] |
static int process_line |
( |
URLContext * |
h, |
|
|
char * |
line, |
|
|
int |
line_count, |
|
|
int * |
new_location | |
|
) |
| | [static] |
Variable Documentation
Initial value:
Definition at line 447 of file http.c.