#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 BUFFER_SIZE 1024 |
Definition at line 35 of file http.c.
Referenced by http_getc().
#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().
static int http_close | ( | URLContext * | h | ) | [static] |
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] |
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] |
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] |
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] |
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().